mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-04 10:09:42 +00:00
fixed file path correction under Cygwin64; fixed parameter detection issue in install-gwt script
This commit is contained in:
1 parent
56fc6a9909
commit
25e7aa5689
2 files changed
+8
-3
No files matched your search
Regular → Executable
+6
-1
@@ -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
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user