-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update deployment scripts, remove Trainable_Segmentation JAR
- Loading branch information
1 parent
e48ce99
commit 3799323
Showing
3 changed files
with
41 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/sh | ||
|
||
# When used from an existing ImageJ.app directory, uploads | ||
# the current ImageJ.app state to the specified ImageJ wiki | ||
# update site. | ||
|
||
die () { | ||
echo "$*" >&2 | ||
exit 1 | ||
} | ||
|
||
test $# -eq 2 || | ||
die "Usage: $0 <update-site> <webdav-user>" | ||
|
||
update_site="$1" | ||
webdav_user="$2" | ||
url="http://sites.imagej.net/$update_site/" | ||
|
||
# determine correct launcher to launch MiniMaven and the Updater | ||
case "$(uname -s),$(uname -m)" in | ||
Linux,x86_64) launcher=ImageJ-linux64;; | ||
Linux,*) launcher=ImageJ-linux32;; | ||
Darwin,*) launcher=Contents/MacOS/ImageJ-tiger;; | ||
MING*,*) launcher=ImageJ-win32.exe;; | ||
*) echo "Unknown platform" >&2; exit 1;; | ||
esac | ||
|
||
echo "Found launcher: $launcher" | ||
|
||
echo "Removing TrainableSegmentation JAR" | ||
rm -f plugins/Trainable_Segmentation* | ||
# upload complete update site | ||
password=$WIKI_UPLOAD_PASS | ||
./$launcher --update edit-update-site $update_site $url "webdav:$webdav_user:$password" . | ||
./$launcher --update upload-complete-site --force --force-shadow $update_site |