X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=build.sh;h=82aacece35eb54414b3dad2982ee8bb67787d5be;hp=fbbd7ffbc1619611a5882cb402ca87f7a144ad22;hb=a1d1d319af15be975bde4695a3bfeb7d78ea0398;hpb=57511b4efd7402ef58de66ac1fe2c01ed1b1d7b5 diff --git a/build.sh b/build.sh index fbbd7ff..82aacec 100755 --- a/build.sh +++ b/build.sh @@ -2,7 +2,7 @@ set -e -PROJVERS=0.0.1 +PROJVERS=0.2 PROJNAME=syp BUILDDIR=${1:-build} @@ -15,7 +15,7 @@ mkdir -p $DESTDIR cp -RLp inc/ $DESTDIR/ # other php files -cp -p admin.php api.php index.php items.php logout.php wizard.php $DESTDIR/ +cp -p admin.*php index.*php upgrade.*php install.*php news.php api.php items.php logout.php $DESTDIR/ # media cp -RLp media/ $DESTDIR/ @@ -26,8 +26,23 @@ cd openlayers/build/ python build.py ../../syp.cfg cd ../../ cp -RLp openlayers/build/OpenLayers.js $DESTDIR/openlayers/ -cp -RLp openlayers/img/ $DESTDIR/openlayers/ -cp -RLp openlayers/theme/ $DESTDIR/openlayers/ + +# openlayers images +mkdir $DESTDIR/openlayers/img +for file in east-mini.png \ + north-mini.png \ + blank.gif \ + west-mini.png \ + zoom-plus-mini.png \ + south-mini.png \ + zoom-minus-mini.png \ + zoom-world-mini.png; do + cp -p openlayers/img/$file $DESTDIR/openlayers/img +done +# openlayers theme +mkdir -p $DESTDIR/openlayers/theme/default/img +cp -Lp openlayers/theme/default/style.css $DESTDIR/openlayers/theme/default/style.css +cp -RLp openlayers/theme/default/img/close.gif $DESTDIR/openlayers/theme/default/img # other javascript cp -RLp js/ $DESTDIR/ @@ -39,15 +54,19 @@ 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 $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