2009-11-21 03:33:06 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Specify the output file's name
|
2010-04-13 07:45:29 +02:00
|
|
|
FILE="dist/jquery.entwine-dist.js"
|
2009-11-21 03:33:06 +01:00
|
|
|
|
|
|
|
mkdir -p dist
|
|
|
|
rm dist/*.js
|
|
|
|
|
2011-02-23 22:03:38 +01:00
|
|
|
echo "/* jQuery.Entwine - Copyright 2009-2011 Hamish Friedlander and SilverStripe. Version $VER. */" > $FILE
|
2009-11-21 03:33:06 +01:00
|
|
|
|
|
|
|
for x in \
|
|
|
|
vendor/jquery.selector/jquery.class.js \
|
|
|
|
vendor/jquery.selector/jquery.selector.js \
|
|
|
|
vendor/jquery.selector/jquery.selector.specifity.js \
|
|
|
|
vendor/jquery.selector/jquery.selector.matches.js \
|
2012-05-14 05:51:11 +02:00
|
|
|
src/jquery.selector.affectedby.js \
|
2009-11-21 03:33:06 +01:00
|
|
|
src/jquery.focusinout.js \
|
2010-04-13 07:45:29 +02:00
|
|
|
src/jquery.entwine.js \
|
|
|
|
src/jquery.entwine.dommaybechanged.js \
|
|
|
|
src/jquery.entwine.events.js \
|
|
|
|
src/jquery.entwine.ctors.js \
|
|
|
|
src/jquery.entwine.properties.js \
|
|
|
|
src/jquery.entwine.legacy.js
|
2009-11-21 03:33:06 +01:00
|
|
|
do \
|
|
|
|
echo >> $FILE
|
|
|
|
echo "/* $x */" >> $FILE
|
|
|
|
echo >> $FILE
|
|
|
|
cat $x >> $FILE
|
|
|
|
echo ';' >> $FILE
|
|
|
|
echo >> $FILE
|
|
|
|
done
|
|
|
|
|
2011-05-12 08:11:41 +02:00
|
|
|
cp $FILE "dist/jquery.concrete-dist.js"
|
|
|
|
|
2009-11-21 03:33:06 +01:00
|
|
|
# cp LICENSE /tmp/
|
|
|
|
# cp $FILE /tmp/
|
|
|
|
|
|
|
|
# git checkout dist
|
|
|
|
# mv /tmp/$FILE .
|
|
|
|
# mv /tmp/LICENSE .
|
|
|
|
|
|
|
|
# git add $FILE
|
|
|
|
# git add LICENSE
|
|
|
|
# git commit -m "Update dist to master version $VER"
|
|
|
|
|
2011-02-23 22:03:38 +01:00
|
|
|
# git checkout master
|