7 # Create JAR files; this cannot be done with SCons,
8 # because Scons looses inner classes.
9 jar -cf sonews.jar -C classes/ org/
10 jar -ufe sonews.jar org.sonews.daemon.Main
11 jar -cf test.jar -C classes/ test/
12 jar -ufe test.jar test.TestBench
13 jar -cf sonews-helpers.jar helpers/
14 jar -uf sonews.jar org/sonews/web/tmpl/*.tmpl
16 # Create faked root for packaging
17 sudo rm -r $PACKAGE_ROOT/
18 mkdir -p $PACKAGE_ROOT/usr/share/java
19 mkdir -p $PACKAGE_ROOT/usr/bin
20 mkdir -p $PACKAGE_ROOT/etc/sonews
21 mkdir -p $PACKAGE_ROOT/usr/share/doc/sonews/
22 cp -r DEBIAN $PACKAGE_ROOT/
23 cp helpers/sonews $PACKAGE_ROOT/usr/bin/sonews
24 cp helpers/sonews.conf.sample $PACKAGE_ROOT/etc/sonews/sonews.conf
25 cp helpers/copyright $PACKAGE_ROOT/usr/share/doc/sonews/
26 cp sonews*.jar $PACKAGE_ROOT/usr/share/java/
28 sudo chown root:root -R $PACKAGE_ROOT/
30 dpkg-deb --build $PACKAGE_ROOT
33 sudo rm -r $PACKAGE_ROOT
36 # Create metapackage sonews-web
37 PACKAGE_ROOT=sonews-web
39 cp -r DEBIAN-web $PACKAGE_ROOT/DEBIAN
40 dpkg-deb --build $PACKAGE_ROOT
45 lintian sonews-web.deb