From f09c4ffe4ef09a1111040dc761c2884feab77c96 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Mon, 3 Sep 2018 16:29:43 +0200 Subject: [PATCH] Untabiffy --- Scripts/developer_scripts/create_new_release | 36 ++++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/Scripts/developer_scripts/create_new_release b/Scripts/developer_scripts/create_new_release index 49cffa4fcaf..4c348309920 100755 --- a/Scripts/developer_scripts/create_new_release +++ b/Scripts/developer_scripts/create_new_release @@ -47,8 +47,8 @@ usage() { printerr ' --verbose : print log to standard output, instead of the log file' printerr ' --beta : followed by a number. When used with --public, will modify the release number and the release version name to include beta' - printerr ' --dest : followed by the path to where the release should be created. Default is /tmp.' - printerr ' --is_master : replace the Ic in the name by I.' + printerr ' --dest : followed by the path to where the release should be created. Default is /tmp.' + printerr ' --is_master : replace the Ic in the name by I.' printerr ' : the directory containing the packages [default is trunk]' } @@ -98,15 +98,15 @@ while [ $1 ]; do shift; continue ;; - --dest) - shift - DESTINATION=$1 - shift;continue - ;; - --is_master) - IS_MASTER="y" - shift;continue - ;; + --dest) + shift + DESTINATION=$1 + shift;continue + ;; + --is_master) + IS_MASTER="y" + shift;continue + ;; -*) printerr "Unrecognized option : $1" exit @@ -230,12 +230,12 @@ fi function cleanup() { # Remove local directory and tarball - if [ -d ${release_name} ]; then + if [ -d ${release_name} ]; then rm -rf ./"${release_name}" - fi - if [ -f ${release_name}.tar.gz ]; then + fi + if [ -f ${release_name}.tar.gz ]; then rm ${release_name}.tar.gz - fi + fi if [ -n "$DO_PUBLIC" ]; then [ -d "${public_release_name}" ] && rm -rf ./"${public_release_name}" rm -rf doc @@ -290,11 +290,11 @@ if [ -n "$DO_PUBLIC" ]; then fi public_release_version="${MAJOR_NUMBER}.${MINOR_NUMBER}${BUGFIX_STRING}" if [ -n "$BETA" ]; then - public_release_name="CGAL-${public_release_version}-beta${BETA}" + public_release_name="CGAL-${public_release_version}-beta${BETA}" elif [ -r "${NUMBERS_DIR}/public_release_name" ]; then - public_release_name=`cat "${NUMBERS_DIR}/public_release_name"` + public_release_name=`cat "${NUMBERS_DIR}/public_release_name"` else - public_release_name="CGAL-${public_release_version}" + public_release_name="CGAL-${public_release_version}" fi mv -T ${release_name} $public_release_name