set -e
-PROJVERS=0.1
+PROJVERS=0.3
PROJNAME=syp
BUILDDIR=${1:-build}
# php includes
cp -RLp inc/ $DESTDIR/
+# removes generated settings in case it exists
+rm -f $DESTDIR/inc/settings.php
# other php files
-cp -p admin.*php index.*php upgrade.*php wizard.*php news.php api.php items.php logout.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/
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 -p $DESTDIR/upload/_thumbs