summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 415f1ac)
raw | patch | inline | side by side (parent: 415f1ac)
author | opensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sun, 27 Sep 2009 22:37:37 +0000 (22:37 +0000) | ||
committer | opensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Sun, 27 Sep 2009 22:37:37 +0000 (22:37 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14354 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/contrib/make-gosa-package | patch | blob | history |
index a365cce68a4506fd14fc1174102a94e7b4146c50..acb7c37a606147aa8678614a3d0c4db1de6b7df9 100755 (executable)
MAKE_PLUGINS=""
MAKE_GOTO=""
GOTO=""
+PBUILDER=""
NOT_RELEASED="heimdal dak dfs glpi apache2"
GOTO_NOT_RELEASED="apache-directory-studio goto-cd libresourcepool-net-ldap-perl-1.002 libresourcepool-perl-1.0104 openproj ptc syslinux"
DEBIAN_PKG="remove"
-n|--no-svn Don't extract gosa from svn (when internet connectivity is not present)
-x|--extract-dir Directory where the checkout is for no-svn
-g|--build-goto Build the goto2 packages
+ -l|--use-pbuilder Use pbuilder to build the packages
-h|--help this help
EOF
done
# Import command line parameters
-PARMS=`getopt -o e::d::b:r:s:c:i:p:n:x:g::,h --long branch:,changelog:,plugins:,section:,si-section:,release:,help -n "${0##*/}" -- "$@"`
+PARMS=`getopt -o e::d::b:r:s:c:i:p:n:x:g::l::,h --long branch:,changelog:,plugins:,section:,si-section:,release:,help -n "${0##*/}" -- "$@"`
eval set -- "$PARMS"
while true; do
EXTRACT=$2; shift 2;;
-g|--build-goto)
GOTO="use"; shift 2;;
+ -l|--use-pbuilder)
+ PBUILDER="use"; shift 2;;
-h|--help)
usage ;;
--)
fi
else
echo "Creating debian packages..."
+ echo $PBUILDER
+
for dir in $GOSA_DIR $GOSA_SI_DIR $GOSA_PLUGIN_DIRS; do
+ if [ "$PBUILDER" = "use" ]
+ then
+ echo "using pbuilder"
+ (cd "$dir"; pdebuild)
+ else
(cd "$dir"; dpkg-buildpackage -k$DEBSIGN_KEYID -rfakeroot -sa)
+ fi
done
if [ "$GOTO" = "use" ]
then
echo "Creating GOto debian packages..."
for dir in $GOTO_DIRS; do
+ if [ "$PBUILDER" = "use" ]
+ then
+ echo "using pbuilder to build goto debian packages"
+ (cd "$dir"; pdebuild)
+ else
(cd "$dir"; dpkg-buildpackage -k$DEBSIGN_KEYID -rfakeroot -sa)
+ fi
done
fi
fi