makedeb
changeset 42 7f84f4de2893
parent 41 11402b568081
child 43 7d0e65712a95
     1.1 --- a/makedeb	Wed May 04 18:34:21 2011 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,36 +0,0 @@
     1.4 -#!/bin/bash -x
     1.5 -PACKAGE_ROOT=sonews
     1.6 -
     1.7 -# Compile classes 
     1.8 -scons
     1.9 -
    1.10 -# Create JAR files; this cannot be done with SCons,
    1.11 -# because Scons looses inner classes.
    1.12 -jar -cf sonews.jar -C classes/ org/
    1.13 -jar -ufe sonews.jar org.sonews.Main
    1.14 -jar -cf test.jar -C classes/ test/ 
    1.15 -jar -ufe test.jar test.TestBench
    1.16 -jar -cf sonews-helpers.jar helpers/
    1.17 -
    1.18 -# Create faked root for packaging
    1.19 -sudo rm -r $PACKAGE_ROOT/
    1.20 -mkdir -p $PACKAGE_ROOT/usr/share/java
    1.21 -mkdir -p $PACKAGE_ROOT/usr/bin
    1.22 -mkdir -p $PACKAGE_ROOT/etc/sonews
    1.23 -mkdir -p $PACKAGE_ROOT/usr/share/doc/sonews/
    1.24 -cp -r DEBIAN $PACKAGE_ROOT/
    1.25 -cp helpers/sonews $PACKAGE_ROOT/usr/bin/sonews
    1.26 -cp helpers/sonews.conf.sample $PACKAGE_ROOT/etc/sonews/sonews.conf
    1.27 -cp helpers/copyright $PACKAGE_ROOT/usr/share/doc/sonews/
    1.28 -cp sonews*.jar $PACKAGE_ROOT/usr/share/java/
    1.29 -
    1.30 -sudo chown root:root -R $PACKAGE_ROOT/
    1.31 -
    1.32 -dpkg-deb --build $PACKAGE_ROOT
    1.33 -
    1.34 -# Cleanup
    1.35 -sudo rm -r $PACKAGE_ROOT
    1.36 -rm -r classes/
    1.37 -
    1.38 -# Check debs
    1.39 -lintian sonews.deb