Newer
Older
Piotr Gawron
committed
#!/bin/bash
ROOT=`pwd`
rm -rf debian
rm smasch_*.debian.tar.xz smasch_*.dsc smasch_*.orig.tar.xz smasch_*_all.deb smasch_*_amd64.build smasch_*_amd64.changes
find . -name "*.py[co]" -exec rm -f {} \;
find . -name "__pycache__" -exec rm -rf {} \;
mkdir debian
mkdir debian/smash
cp -r smash/web debian/smash/web
cp -r smash/smash debian/smash/smash
cp -r smash/db_scripts debian/smash/db_scripts
cp smash/manage.py debian/smash/manage.py
cp -r debian-template debian/debian-template
cp CHANGELOG debian/debian-template/changelog
Piotr Gawron
committed
rm debian/smash/smash/local_settings.py
cp local_settings_debian.py debian/smasch.py
Piotr Gawron
committed
CURRENT_VERSION=`cat CHANGELOG |grep smasch |head -1 | cut -f2 -d'(' | cut -f1 -d')'`
cd debian
dh_make -p smasch_$CURRENT_VERSION -s --createorig -e piotr.gawron@uni.lu -y -t $ROOT/debian/debian-template
rm debian/*.ex
rm debian/*.EX
debuild -us -uc