flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject [1/6] git commit: [flex-sdk] [refs/heads/develop] - modified script to detect emulated environments on windows versus unix and build the main file list to copy accordingly
Date Fri, 19 Dec 2014 06:40:13 GMT
Repository: flex-sdk
Updated Branches:
  refs/heads/develop b9b90c59f -> bcb29254f


modified script to detect emulated environments on windows versus unix and build the main
file list to copy accordingly


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/477b058b
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/477b058b
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/477b058b

Branch: refs/heads/develop
Commit: 477b058ba31f52f88e82ad649fb80f70012e6b0d
Parents: 2d79469
Author: chrsmrtn <chrsmrtn@apache.org>
Authored: Thu Dec 18 10:02:49 2014 -0700
Committer: Erik de Bruin <erik@ixsoftware.nl>
Committed: Fri Dec 19 07:39:34 2014 +0100

----------------------------------------------------------------------
 ide/constructFlexForIDE.sh | 77 ++++++++++++++++++++++++++++-------------
 1 file changed, 53 insertions(+), 24 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/477b058b/ide/constructFlexForIDE.sh
----------------------------------------------------------------------
diff --git a/ide/constructFlexForIDE.sh b/ide/constructFlexForIDE.sh
index d9533ab..c28a947 100755
--- a/ide/constructFlexForIDE.sh
+++ b/ide/constructFlexForIDE.sh
@@ -149,30 +149,59 @@ fi
 # Copy files first, then directories.
 
 echo Copying the AIR SDK files to directory "${IDE_SDK_DIR}"
-
-files=(
-    "AIR SDK license.pdf" 
-    "AIR SDK Readme.txt" 
-    bin/adl.exe 
-    bin/adt.bat 
-    bin/adl
-    bin/adt
-    frameworks/libs/air
-    frameworks/libs/player/11.1
-    frameworks/projects/air
-    include
-    install/android
-    lib/adt.jar 
-    lib/android
-    lib/aot
-    lib/nai
-    lib/win
-    runtimes
-    samples/badge
-    samples/descriptor-sample.xml
-    samples/icons
-    templates/air
-    templates/extensions)
+OS=`uname`
+cygwinCheck=`echo $OS|awk '{print match($0,"CYGWIN")}'`;
+mingwCheck=`echo $OS|awk '{print match($0,"MINGW")}'`;
+if  [ $cygwinCheck -gt 0 ] || [ $mingwCheck -gt 0 ]
+then
+    echo "Emulated environment on windows detected: $OS"
+    # set files for emulated environment on windows, we do not need to copy adt and adl as
adl.exe and adt.bat will be copied and used
+    files=(
+        "AIR SDK license.pdf"
+        "AIR SDK Readme.txt"
+        bin/adl.exe
+        bin/adt.bat
+        frameworks/libs/air
+        frameworks/libs/player/11.1
+        frameworks/projects/air
+        include
+        install/android
+        lib/adt.jar 
+        lib/android
+        lib/aot
+        lib/nai
+        lib/win
+        runtimes
+        samples/badge
+        samples/descriptor-sample.xml
+        samples/icons
+        templates/air
+        templates/extensions)
+else
+    # set files for any other environment, assuming will be unix compatible
+    echo "Unix environment detected"
+    files=(
+        "AIR SDK license.pdf"
+        "AIR SDK Readme.txt"
+        bin/adl
+        bin/adt
+        frameworks/libs/air
+        frameworks/libs/player/11.1
+        frameworks/projects/air
+        include
+        install/android
+        lib/adt.jar
+        lib/android
+        lib/aot
+        lib/nai
+        lib/win
+        runtimes
+        samples/badge
+        samples/descriptor-sample.xml
+        samples/icons
+        templates/air
+        templates/extensions)
+fi
 for file in "${files[@]}" 
 do
     copyFileOrDirectory "$file"


Mime
View raw message