set -e
-PROJVERS=0.1
+PROJVERS=0.2
PROJNAME=syp
BUILDDIR=${1:-build}
# openlayers images
mkdir $DESTDIR/openlayers/img
for file in east-mini.png \
- marker-gold.png \
north-mini.png \
blank.gif \
west-mini.png \
zoom-plus-mini.png \
- marker-blue.png \
- marker-green.png \
south-mini.png \
zoom-minus-mini.png \
zoom-world-mini.png; do
mv $file $DESTDIR/js/jquery-$jversion.js
done
-# copyright and readme files
-cp -p license.txt README.txt COPYING.txt $DESTDIR/
+# copyright and readme and changes files
+cp -p license.txt COPYING.txt README.txt CHANGES.txt $DESTDIR/
# creates upload directory
mkdir -p $DESTDIR/upload/_thumbs
tar -pczf ${PROJNAME}_${PROJVERS}.tar.gz ${PROJNAME}-${PROJVERS}
zip -r ${PROJNAME}_${PROJVERS}.zip ${PROJNAME}-${PROJVERS}
cd ..
+
+if [ -d .git/ ] && which git > /dev/null; then
+ git checkout openlayers
+fi