Warning, /games/kajongg/make_debian_package is written in an unsupported language. File is not indexed.

0001 # This script generates a tarball, a rpm package and a debian package.
0002 # The packages do not define dependencies yet.
0003 
0004 # License: GNU GPL V2
0005 
0006 # Copyright 2009,2010 Wolfgang Rohdewald <wolfgang@rohdewald.de>
0007 
0008 # Usage: Start it as superuser in the directory
0009 # containing the svn kajongg source.
0010 
0011 # we might want to look at http://www.infukor.com/rally7.html
0012 # which seems to do a nice job generating a python game .deb package
0013 
0014 rm -rf kajongg-?.?.? /var/tmp/kajongg-*
0015 rm -rf MANIFEST dist build locale
0016 #./compile.sh
0017 ./setup.py bdist_rpm
0018 
0019 cd dist
0020 
0021 # by default Debian packages compress all files in /usr/share/doc,
0022 # we do not want that to happen with index.docbook
0023 
0024 alien --generate --to-deb --keep-version *.noarch.rpm
0025 cd kajongg-*
0026 cd debian
0027 mv rules rules.org
0028 cat rules.org | sed 's/dh_compress/dh_compress -X.docbook/' > rules
0029 chmod 755 rules
0030 rm rules.org
0031 mv control /tmp/control.org
0032 set - `alien --version`
0033 alienversion="$*"
0034 cp ../../../debian.control control
0035 cd ..
0036 
0037 debian/rules binary
0038 dpkg-buildpackage -us -uc
0039 cd ../..
0040 rm -rf MANIFEST build
0041 cd dist
0042 cp -a *.deb *.rpm *.tar.gz $HOME/Dokumente/H/strato/oss