fixed file path correction under Cygwin64; fixed parameter detection issue in install-gwt script

This commit is contained in:
Axel Uhl committed 2023-09-24 23:31:40 +02:00
1 parent 56fc6a9909
commit 25e7aa5689
2 files changed
+8 -3

No files matched your search

+6 -1
View File
@@ -9,7 +9,12 @@ correct_file_path()
fi
if [ "$OSTYPE" == "cygwin" ]; then
echo $1 | sed 's/^\/cygdrive\/\([a-zA-Z]\)\//\1:\//'
echo $1 | grep -q '^/cygdrive/'
if [ "$?" = "0" ]; then
echo $1 | sed 's/^\/cygdrive\/\([a-zA-Z]\)\//\1:\//'
else
echo "c:/cygwin64${1}"
fi
elif [ "$OSTYPE" == "msys" ]; then
echo $1 | sed 's/^\/\([a-zA-Z]\)\//\1:\//'
else
+2 -2
View File
@@ -1,6 +1,6 @@
#!/bin/bash
SAILING_GIT_ROOT="${1}"
if [ -n ${2} ]; then
if [ -n "${2}" ]; then
OUTPUT_FOLDER_FOR_GWT_ZIP="${2}"
fi
GWT_VERSION=2.11.0
@@ -18,7 +18,7 @@ git clone https://github.com/axeluhl/gwt-maven-plugin.git -b ${GWT_VERSION}
cd ${GWT_ROOT}
ant clean dist-dev -Dgwt.version=${GWT_VERSION}
cp build/dist/gwt-${GWT_VERSION}.zip ${GWT}
if [ -n ${OUTPUT_FOLDER_FOR_GWT_ZIP} ]; then
if [ -n "${OUTPUT_FOLDER_FOR_GWT_ZIP}" ]; then
cp build/dist/gwt-${GWT_VERSION}.zip ${OUTPUT_FOLDER_FOR_GWT_ZIP}
fi
cd ${GWT}