X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=build.sh;h=3932ab17178f23417ce4ad5852d656e16a59ca41;hp=d6c6a28138156a8b0e14fd6cd5071ad79877f132;hb=7c5d2d3098b2c4e42f924b6e3d1afec9b5e0b742;hpb=a08ada54fd0a53f80d197fec957ac94f41241c4b diff --git a/build.sh b/build.sh index d6c6a28..3932ab1 100755 --- a/build.sh +++ b/build.sh @@ -15,7 +15,7 @@ mkdir -p $DESTDIR cp -RLp inc/ $DESTDIR/ # other php files -cp -p admin.*php index.*php wizard.*php news.php api.php items.php logout.php $DESTDIR/ +cp -p admin.*php index.*php upgrade.*php wizard.*php news.php api.php items.php logout.php $DESTDIR/ # media cp -RLp media/ $DESTDIR/ @@ -30,13 +30,10 @@ cp -RLp openlayers/build/OpenLayers.js $DESTDIR/openlayers/ # 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 @@ -61,11 +58,15 @@ done cp -p license.txt README.txt COPYING.txt $DESTDIR/ # creates upload directory -mkdir $DESTDIR/upload -chmod a+wx $DESTDIR/upload +mkdir -p $DESTDIR/upload/_thumbs +chmod -R a+wx $DESTDIR/upload # generate sources 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