diff options
author | dancer <dancer> | 2004-07-28 23:39:24 +0000 |
---|---|---|
committer | dancer <dancer> | 2004-07-28 23:39:24 +0000 |
commit | e1f7eaa51635f5a53da343bce05c2a6826ab9e27 (patch) | |
tree | b7323e0d8ba0e506a4c34ef84ca5183aaead25bb /pdebuild-user-mode-linux | |
parent | c7c59cb36ac720cacd79a9413e8d1747991865f7 (diff) | |
download | pbuilder-e1f7eaa51635f5a53da343bce05c2a6826ab9e27.tar pbuilder-e1f7eaa51635f5a53da343bce05c2a6826ab9e27.tar.gz |
+
+ * debian/pbuilder-uml.files: add pbuilder-uml-checkparams
+
+ * Makefile: add pbuilder-uml-checkparams
+
+ * pdebuild-user-mode-linux.1: update manual to reflect
+ current reality of pdebuild-user-mode-linux. It was originally just a
+ copy of pdebuild manpage.
+
+ * pbuilder-checkparams: shift around debootstrapopts parameter
+ processing out of pdebuild options; it doesn't belong there.
+
+ * pdebuild-user-mode-linux: Call pbuilder-uml-checkparams to
+ parse commands in UML way, not pbuilder way.
+ * pbuilder-uml-checkparams: Move command-line parser to here
+ * pbuilder-user-mode-linux: Move command-line parser out
+
Diffstat (limited to 'pdebuild-user-mode-linux')
-rw-r--r-- | pdebuild-user-mode-linux | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/pdebuild-user-mode-linux b/pdebuild-user-mode-linux index 48660d6..b476451 100644 --- a/pdebuild-user-mode-linux +++ b/pdebuild-user-mode-linux @@ -1,6 +1,6 @@ #! /bin/bash # pbuilder-user-mode-linux -- personal Debian package builder -# Copyright (C) 2003 Junichi Uekawa +# Copyright (C) 2003,2004 Junichi Uekawa # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -22,23 +22,29 @@ while ! test -d ./debian -o "$(pwd)" = "/" ; do done if test ! -d ./debian; then - echo "Cannot find ./debian dir" + echo "E: Cannot find ./debian dir" exit 1 fi; export PBCURRENTCOMMANDLINEOPERATION="pdebuild" -. /usr/lib/pbuilder/pbuilder-checkparams + +. /usr/lib/pbuilder/pbuilder-loadconfig +. /usr/lib/pbuilder/pbuilder-uml-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) if [ "${USE_PDEBUILD_INTERNAL}" = 'yes' ]; then - pbuilder-user-mode-linux execute "$@" ${EXTRA_CONFIGFILE[@]/#/--configfile } --bindmounts $(readlink -f ..) /usr/lib/pbuilder/pdebuild-internal ${PWD} --debbuildopts "${DEBBUILDOPTS}" + if [ ! readlink -f .. ]; then + echo "E: Cannot find .. dir from PWD=$(pwd)" + exit 1 + fi + pbuilder-user-mode-linux execute "$@" --bindmounts $(readlink -f ..) /usr/lib/pbuilder/pdebuild-internal ${PWD} --debbuildopts "${DEBBUILDOPTS}" else dpkg-buildpackage -S -us -uc -r${BUILDSOURCEROOTCMD} $DEBBUILDOPTS - pbuilder-user-mode-linux build "$@" ${EXTRA_CONFIGFILE[@]/#/--configfile } --buildresult "${BUILDRESULT}" ../"${PKG_SOURCENAME}_${PKG_VERSION}".dsc + pbuilder-user-mode-linux build "$@" --buildresult "${UML_BUILDRESULT}" ../"${PKG_SOURCENAME}_${PKG_VERSION}".dsc fi if [ "${AUTO_DEBSIGN}" = "yes" ]; then - debsign "${BUILDRESULT}/${PKG_SOURCENAME}_${PKG_VERSION}_${ARCHITECTURE}.changes" + debsign "${UML_BUILDRESULT}/${PKG_SOURCENAME}_${PKG_VERSION}_${ARCHITECTURE}.changes" fi |