You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ji...@apache.org on 2019/01/08 18:23:16 UTC

svn commit: r1850778 - /openoffice/devtools/build-scripts/4.2.0-dev/unxmacos/build_aoo64bit_on_macos.sh

Author: jim
Date: Tue Jan  8 18:23:15 2019
New Revision: 1850778

URL: http://svn.apache.org/viewvc?rev=1850778&view=rev
Log:
Force usage of Gnu getopts and update

Modified:
    openoffice/devtools/build-scripts/4.2.0-dev/unxmacos/build_aoo64bit_on_macos.sh

Modified: openoffice/devtools/build-scripts/4.2.0-dev/unxmacos/build_aoo64bit_on_macos.sh
URL: http://svn.apache.org/viewvc/openoffice/devtools/build-scripts/4.2.0-dev/unxmacos/build_aoo64bit_on_macos.sh?rev=1850778&r1=1850777&r2=1850778&view=diff
==============================================================================
--- openoffice/devtools/build-scripts/4.2.0-dev/unxmacos/build_aoo64bit_on_macos.sh (original)
+++ openoffice/devtools/build-scripts/4.2.0-dev/unxmacos/build_aoo64bit_on_macos.sh Tue Jan  8 18:23:15 2019
@@ -28,6 +28,7 @@
 #   o autoconf (symlinked to ~/bin)
 #   o gnutar (symlinked to ~/bin)
 #   o perl5 (symlinked to ~/bin)
+#   o getopt (symlinked to ~/bin)
 #   o subversion
 #   o git
 # 
@@ -56,24 +57,22 @@ AOO_BUILD_TYPE=
 AOO_BUILD_VERSION=
 AOO_BUILD_BETA=
 
-OPTS=`getopt --long verbose,skip-config,just-config,dev,beta,ant-version:,java-version:,macos-target: -n 'parse-options' -- "$@"`
-
+AOPTS=`getopt -o vsjdba:j:m: --long verbose,skip-config,just-config,dev,beta,ant-version:,java-version:,macos-target: -n 'parse-options' -- "$@"`
 if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi
-#echo "$OPTS"
-eval set -- "$OPTS"
+#echo "$AOPTS"
+eval set -- "$AOPTS"
 
 while true; do
   case "$1" in
-    "--verbose" ) AOO_VERBOSE_BUILD="--enable-verbose"; shift ;;
-    "--skip-config" ) AOO_SKIP_CONFIG="yes"; shift ;;
-    "--just-config" ) AOO_JUST_CONFIG="yes"; shift ;;
-	"--ant-version" ) AOO_ANT_VERSION=$2; shift ;;
-	"--java-version" ) AOO_JAVA_VERSION=$2; shift ;;
-	"--macos-target" ) AOO_MACOS_TARGET=$2; shift ;;
-    "--dev" ) AOO_BUILD_TYPE="Apache OpenOffice Development Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; shift ;;
-    "--beta" ) AOO_BUILD_TYPE="Apache OpenOffice Beta Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; AOO_BUILD_BETA="yes"; shift ;;
-    "--" ) shift; break ;;
-    "" ) break ;;
+    -v | --verbose ) AOO_VERBOSE_BUILD="--enable-verbose"; shift ;;
+    -s | --skip-config ) AOO_SKIP_CONFIG="yes"; shift ;;
+    -j | --just-config ) AOO_JUST_CONFIG="yes"; shift ;;
+    -a | --ant-version ) AOO_ANT_VERSION=$2; shift 2 ;;
+    -j | --java-version ) AOO_JAVA_VERSION=$2; shift 2 ;;
+    -m | --macos-target ) AOO_MACOS_TARGET=$2; shift 2 ;;
+    -d | --dev ) AOO_BUILD_TYPE="Apache OpenOffice Development Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; shift ;;
+    -b | --beta ) AOO_BUILD_TYPE="Apache OpenOffice Beta Build"; AOO_BUILD_VERSION=" [${AOO_BUILD_TYPE}]"; AOO_BUILD_BETA="yes"; shift ;;
+    -- ) shift; break ;;
     * ) echo "unknown option: $1"; shift ;;
   esac
 done