-# 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
- git fetch --all || FATAL "git fetch didn't work"
- git checkout -f $1 || FATAL "git checkout '$1' didn't work"
-fi
-