9 DESTDIR=${BUILDDIR}/${PROJNAME}-${PROJVERS}
15 cp -RLp inc/ $DESTDIR/
18 cp -p admin.php auth.php changes.php index.php items.php wizard.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/
29 cp -RLp openlayers/img/ $DESTDIR/openlayers/
30 cp -RLp openlayers/theme/ $DESTDIR/openlayers/
35 # replace jquery with minified version
36 for file in $DESTDIR/js/jquery-*.min.js; do
37 jversion=${file##$DESTDIR/js/jquery-}
38 jversion=${jversion%%\.min\.js}
39 mv $file $DESTDIR/js/jquery-$jversion.js
42 # copyright and readme files
43 cp -p license.txt README.txt COPYING.txt $DESTDIR/
45 # creates upload directory
47 chmod a+wx $DESTDIR/upload
51 tar -pczf ${PROJNAME}_${PROJVERS}.tar.gz ${PROJNAME}-${PROJVERS}
52 zip -r ${PROJNAME}_${PROJVERS}.zip ${PROJNAME}-${PROJVERS}