aboutsummaryrefslogtreecommitdiff
path: root/pdebuild
diff options
context:
space:
mode:
Diffstat (limited to 'pdebuild')
-rw-r--r--pdebuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/pdebuild b/pdebuild
index 69e3757..e541835 100644
--- a/pdebuild
+++ b/pdebuild
@@ -17,6 +17,9 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
set -e
+export PBCURRENTCOMMANDLINEOPERATION="pdebuild"
+. /usr/lib/pbuilder/pdebuild-checkparams
+
while ! test -d ./debian -o "$(pwd)" = "/" ; do
cd ..;
done
@@ -26,9 +29,6 @@ if test ! -d ./debian; then
exit 1
fi;
-export PBCURRENTCOMMANDLINEOPERATION="pdebuild"
-. /usr/lib/pbuilder/pdebuild-checkparams
-
PKG_SOURCENAME=$(dpkg-parsechangelog|sed -n 's/^Source: //p')
PKG_VERSION=$(dpkg-parsechangelog|sed -n 's/^Version: \(.*:\|\)//p')
ARCHITECTURE=$(dpkg-architecture -qDEB_HOST_ARCH)