This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit a02f948e4d44da7a2359a30e0a5b695ffc9a4af8 Author: Carlos Rovira <[email protected]> AuthorDate: Sun Sep 9 10:46:26 2018 +0200 Revert "remove files in distribution bin that seems obsolete" This reverts commit 9680f26537bb08d2a9859b3716ff0cd1002502ac. --- distribution/src/main/resources/bin/acompc | 29 +++++++++ distribution/src/main/resources/bin/acompc.bat | 26 ++++++++ distribution/src/main/resources/bin/amxmlc | 29 +++++++++ distribution/src/main/resources/bin/amxmlc.bat | 26 ++++++++ distribution/src/main/resources/bin/compc | 71 ++++++++++++++++++++++ distribution/src/main/resources/bin/compc.bat | 32 ++++++++++ distribution/src/main/resources/bin/mxmlc | 71 ++++++++++++++++++++++ distribution/src/main/resources/bin/mxmlc.bat | 33 ++++++++++ distribution/src/main/resources/bin/optimizer | 62 +++++++++++++++++++ distribution/src/main/resources/bin/optimizer.bat | 27 ++++++++ distribution/src/main/resources/bin/swcdepends | 71 ++++++++++++++++++++++ distribution/src/main/resources/bin/swcdepends.bat | 31 ++++++++++ distribution/src/main/resources/bin/swfdump | 62 +++++++++++++++++++ distribution/src/main/resources/bin/swfdump.bat | 26 ++++++++ 14 files changed, 596 insertions(+) diff --git a/distribution/src/main/resources/bin/acompc b/distribution/src/main/resources/bin/acompc new file mode 100644 index 0000000..767bd7f --- /dev/null +++ b/distribution/src/main/resources/bin/acompc @@ -0,0 +1,29 @@ +#!/bin/sh + +################################################################################ +## +## Licensed to the Apache Software Foundation (ASF) under one or more +## contributor license agreements. See the NOTICE file distributed with +## this work for additional information regarding copyright ownership. +## The ASF licenses this file to You under the Apache License, Version 2.0 +## (the "License"); you may not use this file except in compliance with +## the License. You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +## See the License for the specific language governing permissions and +## limitations under the License. +## +################################################################################ + +# +# acompc shell script to launch compiler-compc.jar on OSX, Unix, or Cygwin to +# compile SWC libraries for Adobe AIR. +# In Windows Command Prompt, use acompc.bat instead. +# + +compc=`dirname "$0"`/compc +"$compc" +configname=air "$@" diff --git a/distribution/src/main/resources/bin/acompc.bat b/distribution/src/main/resources/bin/acompc.bat new file mode 100644 index 0000000..519411d --- /dev/null +++ b/distribution/src/main/resources/bin/acompc.bat @@ -0,0 +1,26 @@ +@echo off + +rem +rem Licensed to the Apache Software Foundation (ASF) under one or more +rem contributor license agreements. See the NOTICE file distributed with +rem this work for additional information regarding copyright ownership. +rem The ASF licenses this file to You under the Apache License, Version 2.0 +rem (the "License"); you may not use this file except in compliance with +rem the License. You may obtain a copy of the License at +rem +rem http://www.apache.org/licenses/LICENSE-2.0 +rem +rem Unless required by applicable law or agreed to in writing, software +rem distributed under the License is distributed on an "AS IS" BASIS, +rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +rem See the License for the specific language governing permissions and +rem limitations under the License. +rem + +rem +rem acompc.bat script to launch compiler-compc.jar in Windows Command Prompt to +rem compile SWC libraries for Adobe AIR. +rem On OSX, Unix, or Cygwin, use the acompc shell script instead. +rem + +"%~dp0compc.bat" +configname=air %* diff --git a/distribution/src/main/resources/bin/amxmlc b/distribution/src/main/resources/bin/amxmlc new file mode 100644 index 0000000..f675543 --- /dev/null +++ b/distribution/src/main/resources/bin/amxmlc @@ -0,0 +1,29 @@ +#!/bin/sh + +################################################################################ +## +## Licensed to the Apache Software Foundation (ASF) under one or more +## contributor license agreements. See the NOTICE file distributed with +## this work for additional information regarding copyright ownership. +## The ASF licenses this file to You under the Apache License, Version 2.0 +## (the "License"); you may not use this file except in compliance with +## the License. You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +## See the License for the specific language governing permissions and +## limitations under the License. +## +################################################################################ + +# +# amxmlc shell script to launch compiler-mxmlc.jar on OSX, Unix, or Cygwin to +# compile SWF applications for Adobe AIR. +# In Windows Command Prompt, use amxmlc.bat instead. +# + +mxmlc=`dirname "$0"`/mxmlc +"$mxmlc" +configname=air "$@" diff --git a/distribution/src/main/resources/bin/amxmlc.bat b/distribution/src/main/resources/bin/amxmlc.bat new file mode 100644 index 0000000..d476061 --- /dev/null +++ b/distribution/src/main/resources/bin/amxmlc.bat @@ -0,0 +1,26 @@ +@echo off + +rem +rem Licensed to the Apache Software Foundation (ASF) under one or more +rem contributor license agreements. See the NOTICE file distributed with +rem this work for additional information regarding copyright ownership. +rem The ASF licenses this file to You under the Apache License, Version 2.0 +rem (the "License"); you may not use this file except in compliance with +rem the License. You may obtain a copy of the License at +rem +rem http://www.apache.org/licenses/LICENSE-2.0 +rem +rem Unless required by applicable law or agreed to in writing, software +rem distributed under the License is distributed on an "AS IS" BASIS, +rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +rem See the License for the specific language governing permissions and +rem limitations under the License. +rem + +rem +rem amxmlc.bat script to launch compiler-mxmlc.jar in Windows Command Prompt to +rem compile SWF applications for Adobe AIR. +rem On OSX, Unix, or Cygwin, use the amxmlc shell script instead. +rem + +"%~dp0mxmlc.bat" +configname=air %* diff --git a/distribution/src/main/resources/bin/compc b/distribution/src/main/resources/bin/compc new file mode 100755 index 0000000..4a37dd8 --- /dev/null +++ b/distribution/src/main/resources/bin/compc @@ -0,0 +1,71 @@ +#!/bin/sh + +################################################################################ +## +## Licensed to the Apache Software Foundation (ASF) under one or more +## contributor license agreements. See the NOTICE file distributed with +## this work for additional information regarding copyright ownership. +## The ASF licenses this file to You under the Apache License, Version 2.0 +## (the "License"); you may not use this file except in compliance with +## the License. You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +## See the License for the specific language governing permissions and +## limitations under the License. +## +################################################################################ + +# +# compc shell script to launch compiler-compc.jar on OSX, Unix, or Cygwin. +# In Windows Command Prompt, use compc.bat instead. +# + +if [ "x${ROYALE_COMPILER_HOME}" = "x" ] +then + SCRIPT_HOME=`dirname "$0"` + ROYALE_COMPILER_HOME=${SCRIPT_HOME}/.. +else + echo Using Royale codebase: $ROYALE_COMPILER_HOME +fi + +if [ "x${ROYALE_HOME}" = "x" ] +then + SCRIPT_HOME=`dirname "$0"` + ROYALE_HOME=${SCRIPT_HOME}/.. +else + echo Using Royale SDK: $ROYALE_HOME +fi + +case `uname` in + CYGWIN*) + OS="Windows" + ;; + *) + OS=Unix +esac + +D32='' + +if [ $OS = "Windows" ]; then + + ROYALE_COMPILER_HOME=`cygpath -m $ROYALE_COMPILER_HOME` + ROYALE_HOME=`cygpath -m $ROYALE_HOME` + +elif [ $OS = "Unix" ]; then + + check64="`java -version 2>&1 | grep -i 64-Bit`" + isOSX="`uname | grep -i Darwin`" + javaVersion="`java -version 2>&1 | awk -F '[ ".]+' 'NR==1 {print $3 "." $4}'`" + + if [ "$isOSX" != "" -a "$HOSTTYPE" = "x86_64" -a "$check64" != "" -a "$javaVersion" = "1.6" ]; then + D32='-d32' + fi +fi + +VMARGS="-Xmx384m -Dsun.io.useCanonCaches=false " + +java $VMARGS $D32 $SETUP_SH_VMARGS -Droyalelib="$ROYALE_HOME/frameworks" -jar "${ROYALE_COMPILER_HOME}/lib/compiler-compc.jar" "$@" diff --git a/distribution/src/main/resources/bin/compc.bat b/distribution/src/main/resources/bin/compc.bat new file mode 100644 index 0000000..54b9ca3 --- /dev/null +++ b/distribution/src/main/resources/bin/compc.bat @@ -0,0 +1,32 @@ +@echo off + +rem +rem Licensed to the Apache Software Foundation (ASF) under one or more +rem contributor license agreements. See the NOTICE file distributed with +rem this work for additional information regarding copyright ownership. +rem The ASF licenses this file to You under the Apache License, Version 2.0 +rem (the "License"); you may not use this file except in compliance with +rem the License. You may obtain a copy of the License at +rem +rem http://www.apache.org/licenses/LICENSE-2.0 +rem +rem Unless required by applicable law or agreed to in writing, software +rem distributed under the License is distributed on an "AS IS" BASIS, +rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +rem See the License for the specific language governing permissions and +rem limitations under the License. +rem + +rem +rem compc.bat script to launch compiler-compc.jar in Windows Command Prompt. +rem On OSX, Unix, or Cygwin, use the compc shell script instead. +rem + +setlocal + +if "x%ROYALE_COMPILER_HOME%"=="x" (set ROYALE_COMPILER_HOME=%~dp0..) else echo Using Royale codebase: %ROYALE_COMPILER_HOME% + +if "x%ROYALE_HOME%"=="x" (set ROYALE_HOME=%~dp0..) else echo Using Royale SDK: %ROYALE_HOME% + +@java -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m -Droyalelib="%ROYALE_HOME%/frameworks" -jar "%ROYALE_COMPILER_HOME%\lib\compiler-compc.jar" %* + diff --git a/distribution/src/main/resources/bin/mxmlc b/distribution/src/main/resources/bin/mxmlc new file mode 100755 index 0000000..061cdf4 --- /dev/null +++ b/distribution/src/main/resources/bin/mxmlc @@ -0,0 +1,71 @@ +#!/bin/sh + +################################################################################ +## +## Licensed to the Apache Software Foundation (ASF) under one or more +## contributor license agreements. See the NOTICE file distributed with +## this work for additional information regarding copyright ownership. +## The ASF licenses this file to You under the Apache License, Version 2.0 +## (the "License"); you may not use this file except in compliance with +## the License. You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +## See the License for the specific language governing permissions and +## limitations under the License. +## +################################################################################ + +# +# mxmlc shell script to launch compiler-mxmlc.jar on OSX, Unix, or Cygwin. +# In Windows Command Prompt, use mxmlc.bat instead. +# + +if [ "x${ROYALE_COMPILER_HOME}" = "x" ] +then + SCRIPT_HOME=`dirname "$0"` + ROYALE_COMPILER_HOME=${SCRIPT_HOME}/.. +else + echo Using Royale codebase: $ROYALE_COMPILER_HOME +fi + +if [ "x${ROYALE_HOME}" = "x" ] +then + SCRIPT_HOME=`dirname "$0"` + ROYALE_HOME=${SCRIPT_HOME}/.. +else + echo Using Royale SDK: $ROYALE_HOME +fi + +case `uname` in + CYGWIN*) + OS="Windows" + ;; + *) + OS=Unix +esac + +D32='' + +if [ $OS = "Windows" ]; then + + ROYALE_COMPILER_HOME=`cygpath -m $ROYALE_COMPILER_HOME` + ROYALE_HOME=`cygpath -m $ROYALE_HOME` + +elif [ $OS = "Unix" ]; then + + check64="`java -version 2>&1 | grep -i 64-Bit`" + isOSX="`uname | grep -i Darwin`" + javaVersion="`java -version 2>&1 | awk -F '[ ".]+' 'NR==1 {print $3 "." $4}'`" + + if [ "$isOSX" != "" -a "$HOSTTYPE" = "x86_64" -a "$check64" != "" -a "$javaVersion" = "1.6" ]; then + D32='-d32' + fi +fi + +VMARGS="-Xmx384m -Dsun.io.useCanonCaches=false " + +java $VMARGS $D32 $SETUP_SH_VMARGS -Droyalelib="$ROYALE_HOME/frameworks" -jar "${ROYALE_COMPILER_HOME}/lib/compiler-mxmlc.jar" "$@" diff --git a/distribution/src/main/resources/bin/mxmlc.bat b/distribution/src/main/resources/bin/mxmlc.bat new file mode 100644 index 0000000..37458cf --- /dev/null +++ b/distribution/src/main/resources/bin/mxmlc.bat @@ -0,0 +1,33 @@ +@echo off + +rem +rem Licensed to the Apache Software Foundation (ASF) under one or more +rem contributor license agreements. See the NOTICE file distributed with +rem this work for additional information regarding copyright ownership. +rem The ASF licenses this file to You under the Apache License, Version 2.0 +rem (the "License"); you may not use this file except in compliance with +rem the License. You may obtain a copy of the License at +rem +rem http://www.apache.org/licenses/LICENSE-2.0 +rem +rem Unless required by applicable law or agreed to in writing, software +rem distributed under the License is distributed on an "AS IS" BASIS, +rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +rem See the License for the specific language governing permissions and +rem limitations under the License. +rem + +rem +rem mxmlc.bat script to launch compiler-mxmlc.jar in Windows Command Prompt. +rem On OSX, Unix, or Cygwin, use the mxmlc shell script instead. +rem + +setlocal + +if "x%ROYALE_COMPILER_HOME%"=="x" (set ROYALE_COMPILER_HOME=%~dp0..) else echo Using Royale codebase: %ROYALE_COMPILER_HOME% + +if "x%ROYALE_HOME%"=="x" (set ROYALE_HOME=%~dp0..) else echo Using Royale SDK: %ROYALE_HOME% + +@java -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m -Droyalelib="%ROYALE_HOME%\frameworks" -jar "%ROYALE_COMPILER_HOME%\lib\compiler-mxmlc.jar" %* + + diff --git a/distribution/src/main/resources/bin/optimizer b/distribution/src/main/resources/bin/optimizer new file mode 100644 index 0000000..b7c68e7 --- /dev/null +++ b/distribution/src/main/resources/bin/optimizer @@ -0,0 +1,62 @@ +#!/bin/sh + +################################################################################ +## +## Licensed to the Apache Software Foundation (ASF) under one or more +## contributor license agreements. See the NOTICE file distributed with +## this work for additional information regarding copyright ownership. +## The ASF licenses this file to You under the Apache License, Version 2.0 +## (the "License"); you may not use this file except in compliance with +## the License. You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +## See the License for the specific language governing permissions and +## limitations under the License. +## +################################################################################ + +# +# foptimizer shell script to launch the optimizer from compiler-optimizer.jar on +# OSX, Unix, or Cygwin. In Windows Command Prompt, use foptimizer.bat instead. +# + +if [ "x${ROYALE_COMPILER_HOME}" = "x" ] +then + SCRIPT_HOME=`dirname "$0"` + ROYALE_COMPILER_HOME=${SCRIPT_HOME}/.. +else + echo Using Royale codebase: $ROYALE_COMPILER_HOME +fi + +case `uname` in + CYGWIN*) + OS="Windows" + ;; + *) + OS=Unix +esac + +D32='' + +if [ $OS = "Windows" ]; then + + ROYALE_COMPILER_HOME=`cygpath -m $ROYALE_COMPILER_HOME` + +elif [ $OS = "Unix" ]; then + + check64="`java -version 2>&1 | grep -i 64-Bit`" + isOSX="`uname | grep -i Darwin`" + javaVersion="`java -version 2>&1 | awk -F '[ ".]+' 'NR==1 {print $3 "." $4}'`" + + if [ "$isOSX" != "" -a "$HOSTTYPE" = "x86_64" -a "$check64" != "" -a "$javaVersion" = "1.6" ]; then + D32='-d32' + fi +fi + +VMARGS="-Xms32m -Xmx512m -Dsun.io.useCanonCaches=false " + +java $VMARGS $D32 $SETUP_SH_VMARGS -jar "${ROYALE_COMPILER_HOME}/lib/compiler-optimizer.jar" "$@" diff --git a/distribution/src/main/resources/bin/optimizer.bat b/distribution/src/main/resources/bin/optimizer.bat new file mode 100644 index 0000000..1ea9fdf --- /dev/null +++ b/distribution/src/main/resources/bin/optimizer.bat @@ -0,0 +1,27 @@ +@echo off + +rem +rem Licensed to the Apache Software Foundation (ASF) under one or more +rem contributor license agreements. See the NOTICE file distributed with +rem this work for additional information regarding copyright ownership. +rem The ASF licenses this file to You under the Apache License, Version 2.0 +rem (the "License"); you may not use this file except in compliance with +rem the License. You may obtain a copy of the License at +rem +rem http://www.apache.org/licenses/LICENSE-2.0 +rem +rem Unless required by applicable law or agreed to in writing, software +rem distributed under the License is distributed on an "AS IS" BASIS, +rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +rem See the License for the specific language governing permissions and +rem limitations under the License. +rem + +rem +rem foptimizer.bat script to launch the compiler-optimizer.jar in a Windows +rem Command Prompt. On OSX, Unix, or Cygwin, use the foptimizer shell script +rem instead. +rem + +@java -Dsun.io.useCanonCaches=false -Dapplication.home="%~dp0.." -Xms32m -Xmx512m -jar "%~dp0..\lib\compiler-optimizer.jar" %* + diff --git a/distribution/src/main/resources/bin/swcdepends b/distribution/src/main/resources/bin/swcdepends new file mode 100644 index 0000000..2838227 --- /dev/null +++ b/distribution/src/main/resources/bin/swcdepends @@ -0,0 +1,71 @@ +#!/bin/sh + +################################################################################ +## +## Licensed to the Apache Software Foundation (ASF) under one or more +## contributor license agreements. See the NOTICE file distributed with +## this work for additional information regarding copyright ownership. +## The ASF licenses this file to You under the Apache License, Version 2.0 +## (the "License"); you may not use this file except in compliance with +## the License. You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +## See the License for the specific language governing permissions and +## limitations under the License. +## +################################################################################ + +# +# fasc shell script to launch compiler-asc.jar on OSX, Unix, or Cygwin. +# In Windows Command Prompt, use fasc.bat instead. +# + +if [ "x${ROYALE_COMPILER_HOME}" = "x" ] +then + SCRIPT_HOME=`dirname "$0"` + ROYALE_COMPILER_HOME=${SCRIPT_HOME}/.. +else + echo Using Royale Compiler codebase: $ROYALE_COMPILER_HOME +fi + +if [ "x${ROYALE_HOME}" = "x" ] +then + SCRIPT_HOME=`dirname "$0"` + ROYALE_HOME=${SCRIPT_HOME}/.. +else + echo Using Royale SDK: $ROYALE_HOME +fi + +case `uname` in + CYGWIN*) + OS="Windows" + ;; + *) + OS=Unix +esac + +D32='' + +if [ $OS = "Windows" ]; then + + ROYALE_COMPILER_HOME=`cygpath -m $ROYALE_COMPILER_HOME` + ROYALE_HOME=`cygpath -m $ROYALE_HOME` + +elif [ $OS = "Unix" ]; then + + check64="`java -version 2>&1 | grep -i 64-Bit`" + isOSX="`uname | grep -i Darwin`" + javaVersion="`java -version 2>&1 | awk -F '[ ".]+' 'NR==1 {print $3 "." $4}'`" + + if [ "$isOSX" != "" -a "$HOSTTYPE" = "x86_64" -a "$check64" != "" -a "$javaVersion" = "1.6" ]; then + D32='-d32' + fi +fi + +VMARGS="-Xmx384m -Dsun.io.useCanonCaches=false " + +java $VMARGS $D32 $SETUP_SH_VMARGS -Droyalelib="$ROYALE_HOME/frameworks" -jar "${ROYALE_COMPILER_HOME}/lib/royale-swcdepends.jar" "$@" diff --git a/distribution/src/main/resources/bin/swcdepends.bat b/distribution/src/main/resources/bin/swcdepends.bat new file mode 100644 index 0000000..b4c7a3e --- /dev/null +++ b/distribution/src/main/resources/bin/swcdepends.bat @@ -0,0 +1,31 @@ +@echo off + +rem +rem Licensed to the Apache Software Foundation (ASF) under one or more +rem contributor license agreements. See the NOTICE file distributed with +rem this work for additional information regarding copyright ownership. +rem The ASF licenses this file to You under the Apache License, Version 2.0 +rem (the "License"); you may not use this file except in compliance with +rem the License. You may obtain a copy of the License at +rem +rem http://www.apache.org/licenses/LICENSE-2.0 +rem +rem Unless required by applicable law or agreed to in writing, software +rem distributed under the License is distributed on an "AS IS" BASIS, +rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +rem See the License for the specific language governing permissions and +rem limitations under the License. +rem + +rem +rem swcdepends.bat script to launch royale-swcdepends.jar in Windows Command Prompt. +rem On OSX, Unix, or Cygwin, use the swcdepends shell script instead. +rem + +setlocal + +if "x%ROYALE_COMPILER_HOME%"=="x" (set ROYALE_COMPILER_HOME=%~dp0..) else echo Using Royale codebase: %ROYALE_COMPILER_HOME% + +if "x%ROYALE_HOME%"=="x" (set ROYALE_HOME=%~dp0..) else echo Using Royale SDK: %ROYALE_HOME% + +@java -Dsun.io.useCanonCaches=false -Xms32m -Xmx512m -Droyalelib="%ROYALE_HOME%\frameworks" -jar "%ROYALE_COMPILER_HOME%\lib\royale-swcdepends.jar" %* diff --git a/distribution/src/main/resources/bin/swfdump b/distribution/src/main/resources/bin/swfdump new file mode 100644 index 0000000..e4d6364 --- /dev/null +++ b/distribution/src/main/resources/bin/swfdump @@ -0,0 +1,62 @@ +#!/bin/sh + +################################################################################ +## +## Licensed to the Apache Software Foundation (ASF) under one or more +## contributor license agreements. See the NOTICE file distributed with +## this work for additional information regarding copyright ownership. +## The ASF licenses this file to You under the Apache License, Version 2.0 +## (the "License"); you may not use this file except in compliance with +## the License. You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +## See the License for the specific language governing permissions and +## limitations under the License. +## +################################################################################ + +# +# fasc shell script to launch compiler-asc.jar on OSX, Unix, or Cygwin. +# In Windows Command Prompt, use fasc.bat instead. +# + +if [ "x${ROYALE_COMPILER_HOME}" = "x" ] +then + SCRIPT_HOME=`dirname "$0"` + ROYALE_COMPILER_HOME=${SCRIPT_HOME}/.. +else + echo Using Royale codebase: $ROYALE_COMPILER_HOME +fi + +case `uname` in + CYGWIN*) + OS="Windows" + ;; + *) + OS=Unix +esac + +D32='' + +if [ $OS = "Windows" ]; then + + ROYALE_COMPILER_HOME=`cygpath -m $ROYALE_COMPILER_HOME` + +elif [ $OS = "Unix" ]; then + + check64="`java -version 2>&1 | grep -i 64-Bit`" + isOSX="`uname | grep -i Darwin`" + javaVersion="`java -version 2>&1 | awk -F '[ ".]+' 'NR==1 {print $3 "." $4}'`" + + if [ "$isOSX" != "" -a "$HOSTTYPE" = "x86_64" -a "$check64" != "" -a "$javaVersion" = "1.6" ]; then + D32='-d32' + fi +fi + +VMARGS="-Xmx384m -Dsun.io.useCanonCaches=false " + +java $VMARGS $D32 $SETUP_SH_VMARGS -jar "${ROYALE_COMPILER_HOME}/lib/compiler-swfdump.jar" "$@" diff --git a/distribution/src/main/resources/bin/swfdump.bat b/distribution/src/main/resources/bin/swfdump.bat new file mode 100644 index 0000000..bc441bb --- /dev/null +++ b/distribution/src/main/resources/bin/swfdump.bat @@ -0,0 +1,26 @@ +@echo off + +rem +rem Licensed to the Apache Software Foundation (ASF) under one or more +rem contributor license agreements. See the NOTICE file distributed with +rem this work for additional information regarding copyright ownership. +rem The ASF licenses this file to You under the Apache License, Version 2.0 +rem (the "License"); you may not use this file except in compliance with +rem the License. You may obtain a copy of the License at +rem +rem http://www.apache.org/licenses/LICENSE-2.0 +rem +rem Unless required by applicable law or agreed to in writing, software +rem distributed under the License is distributed on an "AS IS" BASIS, +rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +rem See the License for the specific language governing permissions and +rem limitations under the License. +rem + +rem +rem fasc.bat script to launch compiler-asc.jar in Windows Command Prompt. +rem On OSX, Unix, or Cygwin, use the fasc shell script instead. +rem + +@java -Dsun.io.useCanonCaches=false -Dapplication.home="%~dp0.." -Xms32m -Xmx512m -jar "%~dp0..\lib\compiler-swfdump.jar" %* +
