# SET YOU MDG repository name here
export OSM_MDG=SO
OSM_load_config
+OSM_git_checkout "$@"
-
-# Here is an example for how to handle an incremental build
-if [ -d $OSM_MDG ]; then
- INFO "reusing existing workspace"
- cd $OSM_MDG
- git pull
-else
- INFO "cloning MDG $OSM_MDG from $OSM_GIT_URL/$OSM_MDG"
- git clone $OSM_GIT_URL/$OSM_MDG
- cd $OSM_MDG
-fi
-
-if [ $# -gt 0 ]; then
- INFO "Code to compile: gerrit refspec '$1', commit-id: '$2'"
- git fetch origin $1 || FATAL "git fetch origin '$1' didn't work"
- git checkout -f $2 || FATAL "git checkout -f '$2' didn't work"
-else
- INFO "Code to compile: master"
- git checkout master
-fi
+trap 'WARNING "INTERRUPT"; exit 1' INT
INFO "starting build"
make clean || FATAL "make clean failed"