9 DESTDIR=${BUILDDIR}/${PROJNAME}-${PROJVERS}
15 cp -RLp inc/ $DESTDIR/
16 # removes generated settings in case it exists
17 rm -f $DESTDIR/inc/settings.php
20 cp -p admin.*php index.*php upgrade.*php install.*php news.php api.php items.php logout.php $DESTDIR/
23 cp -RLp media/ $DESTDIR/
26 mkdir -p $DESTDIR/openlayers
28 python build.py ../../syp.cfg
30 cp -RLp openlayers/build/OpenLayers.js $DESTDIR/openlayers/
33 mkdir $DESTDIR/openlayers/img
34 for file in east-mini.png \
41 zoom-world-mini.png; do
42 cp -p openlayers/img/$file $DESTDIR/openlayers/img
45 mkdir -p $DESTDIR/openlayers/theme/default/img
46 cp -Lp openlayers/theme/default/style.css $DESTDIR/openlayers/theme/default/style.css
47 cp -RLp openlayers/theme/default/img/close.gif $DESTDIR/openlayers/theme/default/img
52 # replace jquery with minified version
53 for file in $DESTDIR/js/jquery-*.min.js; do
54 jversion=${file##$DESTDIR/js/jquery-}
55 jversion=${jversion%%\.min\.js}
56 mv $file $DESTDIR/js/jquery-$jversion.js
59 # copyright and readme and changes files
60 cp -p license.txt COPYING.txt README.txt CHANGES.txt $DESTDIR/
62 # creates upload directory
63 mkdir -p $DESTDIR/upload/_thumbs
64 chmod -R a+wx $DESTDIR/upload
68 tar -pczf ${PROJNAME}_${PROJVERS}.tar.gz ${PROJNAME}-${PROJVERS}
69 zip -r ${PROJNAME}_${PROJVERS}.zip ${PROJNAME}-${PROJVERS}
72 if [ -d .git/ ] && which git > /dev/null; then
73 git checkout openlayers