X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=build.sh;h=2af3bb82d96c7d7be0730971c63747a99dcc4b7f;hp=6cfb0692378d97e715f14ed72b5838ecec6ac250;hb=3b38ca36fc18d34999073625a9c66dc2f05747a3;hpb=7bd8d49ee21cdbc107c8e3eb99a17d636b79dccd diff --git a/build.sh b/build.sh index 6cfb069..2af3bb8 100755 --- a/build.sh +++ b/build.sh @@ -2,7 +2,7 @@ set -e -PROJVERS=0.1 +PROJVERS=0.2 PROJNAME=syp BUILDDIR=${1:-build} @@ -54,8 +54,8 @@ for file in $DESTDIR/js/jquery-*.min.js; 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 @@ -66,3 +66,7 @@ cd $BUILDDIR 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