git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6798df5
)
Don't try to run the clone code if the directory already exists.
author
jeresig
<jeresig@gmail.com>
Mon, 30 Nov 2009 20:52:41 +0000
(15:52 -0500)
committer
jeresig
<jeresig@gmail.com>
Mon, 30 Nov 2009 20:52:41 +0000
(15:52 -0500)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
035b1e1
..
e9da144
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-40,10
+40,10
@@
${DIST_DIR}:
init:
@@echo "Grabbing external dependencies..."
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}
jquery: ${DIST_DIR} selector ${JQ}