9 DESTDIR=${BUILDDIR}/${PROJNAME}-${PROJVERS}
15 cp -RLp inc/ $DESTDIR/
18 cp -p admin.*php index.*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 \
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 files
60 cp -p license.txt README.txt COPYING.txt $DESTDIR/
62 # creates upload directory
64 chmod a+wx $DESTDIR/upload
68 tar -pczf ${PROJNAME}_${PROJVERS}.tar.gz ${PROJNAME}-${PROJVERS}
69 zip -r ${PROJNAME}_${PROJVERS}.zip ${PROJNAME}-${PROJVERS}