Permalink
Browse files

Update Makefile to test if repository exists, rather

than just delete.
  • Loading branch information...
1 parent 712c1bb commit bc337a79d7a9d623fc2f0e72854160b708c03584 @bvds committed Jul 24, 2017
Showing with 11 additions and 17 deletions.
  1. +11 −17 web-UI/Makefile
View
@@ -1,23 +1,17 @@
#
-# There may be some existing files in the git repostory;
-# get these out of the way, first. Then restore them after.
-# Could use --force if you have svn 1.4 or newer.
-#
-dojo-version=trunk
+dojo-version=master
install:
- -rm -r -f dojo dijit dojox util
- git clone https://github.com/dojo/dojo.git dojo
- git clone https://github.com/dojo/dijit.git dijit
- git clone https://github.com/bvds/dojox.git dojox
- git clone https://github.com/dojo/util.git util
- # Development branch can over-write dojo libraries.
- -git checkout
- -git checkout dojox
- -git checkout dijit
- -git checkout util
- # In case the build fails, we tag version first.
- echo "${dojo-version}" > dojo-install-version
+ test -d "dojo" || git clone --recursive https://github.com/dojo/dojo.git dojo
+ test -d "dijit" || git clone --recursive https://github.com/dojo/dijit.git dijit
+ test -d "dojox" || git clone --recursive https://github.com/bvds/dojox.git dojox
+ test -d "util" || git clone --recursive https://github.com/dojo/util.git util
+ cd dojo; git checkout $(dojo-version)
+ cd dijit; git checkout $(dojo-version)
+ cd dojox; git checkout 1.12
+ cd util; git checkout $(dojo-version)
+ echo "${dojo-version}" > dojo-install-version
+ @echo "Andes Javascript build is currently non-functional."
./andes.build.sh
@echo "Installed Dojo $(dojo-version)."

0 comments on commit bc337a7

Please sign in to comment.