Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: ca37fabad86b3803c0efbf4136dcdd5769dde30c (plain) (blame)
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
#!/usr/bin/env bash

# this localbuildproperties.shsource file is to ease local builds to override some variables.
# It should not be used for production builds.
source localbuildproperties.shsource 2>/dev/null

export GIT_HOST=${GIT_HOST:-"git.eclipse.org"}

# gets a fresh copy of the primary/working "bootstrap" scripts needed in build home.

# codifying the branch (or tag) to use, so it can be set/chagned in one place
initScriptTag=master

# tags:
# http://${GIT_HOST}/c/platform/eclipse.platform.releng.aggregator.git/plain/bootstrap/wgetFresh.sh?tag=vI20120417-0700


# to build, all that's needed is the appropriate mbXZ.sh scripts. along with "bootstrap.shsource".
# It gets what ever else it needs.

echo "Fetching bootstrap files from $GIT_HOST"

wget --no-verbose --no-cache  -O mb4M.sh http://${GIT_HOST}/c/platform/eclipse.platform.releng.aggregator.git/plain/bootstrap/mb4M.sh?h=$initScriptTag 2>&1;
wget --no-verbose --no-cache  -O mb4I.sh http://${GIT_HOST}/c/platform/eclipse.platform.releng.aggregator.git/plain/bootstrap/mb4I.sh?h=$initScriptTag 2>&1;
wget --no-verbose --no-cache  -O mb4N.sh http://${GIT_HOST}/c/platform/eclipse.platform.releng.aggregator.git/plain/bootstrap/mb4N.sh?h=$initScriptTag 2>&1;
#wget --no-verbose --no-cache  -O mb4X.sh http://${GIT_HOST}/c/platform/eclipse.platform.releng.aggregator.git/plain/bootstrap/mb4X.sh?h=$initScriptTag 2>&1;
#wget --no-verbose --no-cache  -O mb4Y.sh http://${GIT_HOST}/c/platform/eclipse.platform.releng.aggregator.git/plain/bootstrap/mb4Y.sh?h=$initScriptTag 2>&1;
#wget --no-verbose --no-cache  -O mb4P.sh http://${GIT_HOST}/c/platform/eclipse.platform.releng.aggregator.git/plain/bootstrap/mb4P.sh?h=$initScriptTag 2>&1;
wget --no-verbose --no-cache  -O bootstrap.shsource http://${GIT_HOST}/c/platform/eclipse.platform.releng.aggregator.git/plain/bootstrap/bootstrap.shsource?h=$initScriptTag 2>&1;


# handy script to "wrap" a normal build script such as mb4I.sh to set global test/debug settings
#wget --no-verbose -O testBuild.sh http://${GIT_HOST}/c/platform/eclipse.platform.releng.aggregator.git/plain/bootstrap/testBuild.sh?h=$initScriptTag 2>&1;

# get this script itself (would have to run twice to make use changes, naturally)
# and has trouble "writing over itself" so we put in a file with 'NEW' suffix
# but will remove it if no differences found.
# and a command line like the following works well

wget --no-verbose --no-cache -O wgetFresh.NEW.sh http://${GIT_HOST}/c/platform/eclipse.platform.releng.aggregator.git/plain/bootstrap/wgetFresh.sh?h=$initScriptTag 2>&1;

differs=`diff wgetFresh.NEW.sh wgetFresh.sh`
echo "differs: ${differs}"
if [ -z "${differs}" ]
then
  # 'new' not different from existing, so remove 'new' one
  rm wgetFresh.NEW.sh
else
  echo " "
  echo "     wgetFresh.sh has changed. Compare with and consider replacing with wgetFresh.NEW.sh"
  echo "  "
fi

chmod +x *.sh

Back to the top