9 DESTDIR=${BUILDDIR}/${PROJNAME}-${PROJVERS}
15 cp -RLp inc/ $DESTDIR/
18 cp -p admin.*php index.*php upgrade.*php wizard.*php news.php api.php items.php logout.php $DESTDIR/
21 cp -RLp media/ $DESTDIR/
24 mkdir -p $DESTDIR/openlayers
26 python build.py ../../syp.cfg
28 cp -RLp openlayers/build/OpenLayers.js $DESTDIR/openlayers/
31 mkdir $DESTDIR/openlayers/img
32 for file in east-mini.png \
39 zoom-world-mini.png; do
40 cp -p openlayers/img/$file $DESTDIR/openlayers/img
43 mkdir -p $DESTDIR/openlayers/theme/default/img
44 cp -Lp openlayers/theme/default/style.css $DESTDIR/openlayers/theme/default/style.css
45 cp -RLp openlayers/theme/default/img/close.gif $DESTDIR/openlayers/theme/default/img
50 # replace jquery with minified version
51 for file in $DESTDIR/js/jquery-*.min.js; do
52 jversion=${file##$DESTDIR/js/jquery-}
53 jversion=${jversion%%\.min\.js}
54 mv $file $DESTDIR/js/jquery-$jversion.js
57 # copyright and readme files
58 cp -p license.txt README.txt COPYING.txt $DESTDIR/
60 # creates upload directory
61 mkdir -p $DESTDIR/upload/_thumbs
62 chmod -R a+wx $DESTDIR/upload
66 tar -pczf ${PROJNAME}_${PROJVERS}.tar.gz ${PROJNAME}-${PROJVERS}
67 zip -r ${PROJNAME}_${PROJVERS}.zip ${PROJNAME}-${PROJVERS}
70 if [ -d .git/ ] && which git > /dev/null; then
71 git checkout openlayers