summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3b5f22e)
raw | patch | inline | side by side (parent: 3b5f22e)
author | opensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 18 Aug 2008 11:04:25 +0000 (11:04 +0000) | ||
committer | opensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 18 Aug 2008 11:04:25 +0000 (11:04 +0000) |
left after building
- added a -f to gzip to force overwriting gzip files after
succesive runs
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12234 594d385d-05f5-0310-b6e9-bd551577e9d8
- added a -f to gzip to force overwriting gzip files after
succesive runs
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12234 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/contrib/make-gosa-package | patch | blob | history |
index 776592ee6027aa182280507a9e3bca27308f7266..e0f1cbc3b4e6daf85399bc185cde10295d99c57d 100755 (executable)
-c|--changelog Debian changelog entry [$RELEASE_REASON]
-s|--section Debian section to place GOsa in [$SECTION]
-i|--si-section Debian section to place GOsa-SI in [$SI_SECTION]
+ -d|--debian-pkg Don't clear up debian packages for plugins (for developers only)
-h|--help this help
EOF
done
# Import command line parameters
-PARMS=`getopt -o b:r:s:c:i:p:,h --long branch:,changelog:,plugins:,section:,si-section:,release:,help -n "${0##*/}" -- "$@"`
+PARMS=`getopt -o d::b:r:s:c:i:p:,h --long branch:,changelog:,plugins:,section:,si-section:,release:,help -n "${0##*/}" -- "$@"`
eval set -- "$PARMS"
while true; do
SECTION=$2; shift 2 ;;
-i|--si-section)
SI_SECTION=$2; shift 2 ;;
+ -d|--debian-pkg)
+ DEBIAN_PKG=$2; shift 2 ;;
-h|--help)
usage ;;
--)
tar -c -f "gosa-si_${GOSA_VER}.orig.tar" "${GOSA_SI_DIR}"
echo "Compressing sources..."
-gzip -9 "gosa_${GOSA_VER}.orig.tar"
-gzip -9 "gosa-si_${GOSA_VER}.orig.tar"
+gzip -f -9 "gosa_${GOSA_VER}.orig.tar"
+gzip -f -9 "gosa-si_${GOSA_VER}.orig.tar"
export OVERRIDE_VERSION="$GOSA_VER"
if [ -z "$MAKE_PLUGINS" ]; then
tar -c -f "gosa-plugin-${plugin}_${GOSA_VER}.orig.tar" "${GOSA_PLUG_DIR}"
echo "Compressing sources..."
- gzip -9 "gosa-plugin-${plugin}_${GOSA_VER}.orig.tar"
+ gzip -f -9 "gosa-plugin-${plugin}_${GOSA_VER}.orig.tar"
done
rm -rf gosa-plugins-${BRANCH}
fi
echo "Removing gosa snapshot..."
-for dir in $GOSA_DIR $GOSA_SI_DIR $GOSA_PLUGIN_DIRS; do
+if [ -z "$DEBIAN_PKG" ]
+then
+ for dir in $GOSA_DIR $GOSA_SI_DIR; do
+ rm -rf "$dir"
+ done
+else
+ for dir in $GOSA_DIR $GOSA_SI_DIR $GOSA_PLUGIN_DIRS; do
rm -rf "$dir"
-done
+ done
+fi
+