-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·54 lines (41 loc) · 1.06 KB
/
Copy pathbuild.sh
File metadata and controls
executable file
·54 lines (41 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/sh
set -e
cd "$(dirname "$0")"
for track in latest stable; do
case "$track" in
latest) fiji_dir=Fiji ;;
stable) fiji_dir=Fiji.app ;;
esac
echo
echo '/-----------------\'
echo "| BUILDING $track |"
echo '\-----------------/'
echo
echo '== Checking whether anything has changed =='
if [ "$(./fiji-archive-status.sh "$track")" = 'up-to-date' ]; then
echo 'Nothing has changed. No distros will be generated.'
continue
fi
# Initialize the Fiji installation if needed.
if [ ! -d "$fiji_dir" ]; then
echo
echo '== Building Fiji installation =='
./bootstrap-fiji.sh "$track" || exit 1
fi
# Download the Java bundles.
echo
echo '== Downloading Java bundles =='
./download-javas.sh "$track" || exit 2
# Update the Fiji installation.
echo
echo '== Updating the Fiji installation =='
./update-fiji.sh "$track" || exit 3
# Bundle up the installation for each platform.
echo
echo '== Generating archives =='
./generate-archives.sh "$track" || exit 4
# Upload the application bundles.
echo
echo '== Transferring artifacts =='
./upload-archives.sh "$track" || exit 5
done