Last-Update: 2012-09-18
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
Forwarded: not-needed
Description: patch upstream build script to use it for building help files

--- a/packaging/linux/debian.sh
+++ b/packaging/linux/debian.sh
@@ -1,18 +1,5 @@
 #!/bin/sh
 
-# To be run from the root directory of the PortaBase source code, as
-# packaging/linux/debian.sh
-
-# Generates a binary package by default.  To instead create a source package
-# (for example, to upload to an autobuilder), add the "--source" parameter.
-
-VERSION=`cat packaging/version_number`
-DEST=build/debian/portabase-$VERSION
-
-rm -rf build/debian
-packaging/copy_source.sh $DEST
-cd $DEST
-
 # generate the help files here, since even unstable uses an outdated Sphinx
 rm -rf resources/help/_build/_static
 packaging/generate_help.sh en
@@ -38,8 +25,3 @@
     fi
 done
 
-if [ "$1" = "--source" ]; then
-    dpkg-buildpackage -rfakeroot -sa -S
-else
-    dpkg-buildpackage -rfakeroot -uc -us -sa
-fi
