diff options
author | jeresig <jeresig@gmail.com> | 2009-11-30 15:52:41 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2009-11-30 15:52:41 -0500 |
commit | d605b8ee5667e4c26cf9c89f743e681938139162 (patch) | |
tree | 70904fe18bde43a34c64bcdfbcb518d22b12bf92 /Makefile | |
parent | 6798df54f40b316ce65c4e44e3c0370356956dd7 (diff) | |
download | jquery-d605b8ee5667e4c26cf9c89f743e681938139162.tar.gz jquery-d605b8ee5667e4c26cf9c89f743e681938139162.zip |
Don't try to run the clone code if the directory already exists.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -40,10 +40,10 @@ ${DIST_DIR}: init: @@echo "Grabbing external dependencies..." - @@git clone git://github.com/jquery/qunit.git test/qunit - @@git clone git://github.com/jeresig/sizzle.git src/sizzle - @@cd src/sizzle && git pull origin master - @@cd test/qunit && git pull origin master + @@if test ! -d test/qunit; then git clone git://github.com/jquery/qunit.git test/qunit; fi + @@if test ! -d src/sizzle; then git clone git://github.com/jeresig/sizzle.git src/sizzle; fi + @@cd src/sizzle && git pull origin master &> /dev/null + @@cd test/qunit && git pull origin master &> /dev/null jquery: ${DIST_DIR} selector ${JQ} |