summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f4f7867)
raw | patch | inline | side by side (parent: f4f7867)
author | opensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 26 Feb 2009 13:28:23 +0000 (13:28 +0000) | ||
committer | opensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 26 Feb 2009 13:28:23 +0000 (13:28 +0000) |
- Add a test to not try to remove folder when building tags/2.6.x
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13464 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13464 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/contrib/make-gosa-package | patch | blob | history |
index 4061a6630ae83ca07aa2cbe977671be5eeba7883..8fa112606a853e9be1bb4b646f35230f8bab45ca 100755 (executable)
Usage: ${0##*/} [options]
Options:
- -b|--branch Branch to export [$BRANCH]
- -p|--plugins Comma seperate list of plugins to build. Leave empty to build all.
- -r|--release Debian release to build for [$TARGET_RELEASE]
- -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
+ -b|--branch Branch to export [$BRANCH]
+ -p|--plugins Comma seperate list of plugins to build. Leave empty to build all.
+ -e|--experimental Build not released plugins (for testers and developers only)
+ -r|--release Debian release to build for [$TARGET_RELEASE]
+ -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
exit 1
done
# Import command line parameters
-PARMS=`getopt -o d::b:r:s:c:i:p:,h --long branch:,changelog:,plugins:,section:,si-section:,release:,help -n "${0##*/}" -- "$@"`
+PARMS=`getopt -o e::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
RELEASE_REASON=$2; shift 2 ;;
-p|--plugins)
MAKE_PLUGINS=$(echo $2 | tr ',' ' '); shift 2 ;;
+ -e|--experimental)
+ NOT_RELEASED=""; shift 2;;
-s|--section)
SECTION=$2; shift 2 ;;
-i|--si-section)
then
rm -rf "gosa-${GOSA_VER}"
fi
-mv "gosa-${BNAME}" "gosa-${GOSA_VER}"
-mv "gosa-si-${BNAME}" "gosa-si-${GOSA_VER}"
+
+if [ "$BNAME" != "$GOSA_VER" ]
+then
+ mv "gosa-${BNAME}" "gosa-${GOSA_VER}"
+ mv "gosa-si-${BNAME}" "gosa-si-${GOSA_VER}"
+fi
echo "Creating original sources 'gosa-${GOSA_VER}'..."
tar -c -f "gosa_${GOSA_VER}.orig.tar" "${GOSA_DIR}"