flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Dufilie (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-35006) bug in mxmlc/compc/etc scripts when flexjs path contains spaces
Date Thu, 24 Dec 2015 06:52:49 GMT

     [ https://issues.apache.org/jira/browse/FLEX-35006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andy Dufilie updated FLEX-35006:
--------------------------------
    Description: 
Any place {{`dirname $0`}} appears in a shell script, it should be changed to {{`dirname "$0"`}}
so that it works with paths containing spaces.

A quick search shows which files are affected:
{code}
flexjs
	bin
		compc (2 matches)
			29: SCRIPT_HOME=`dirname $0` 
			37: SCRIPT_HOME=`dirname $0` 
		mxmlc (2 matches)
			29: SCRIPT_HOME=`dirname $0` 
			37: SCRIPT_HOME=`dirname $0` 
		optimizer
			29: SCRIPT_HOME=`dirname $0` 
		swcdepends (2 matches)
			29: SCRIPT_HOME=`dirname $0` 
			37: SCRIPT_HOME=`dirname $0` 
		swfdump
			29: SCRIPT_HOME=`dirname $0` 
	flex-asjs
		js
			bin
				asjsc
					28: SCRIPT_HOME=`dirname $0` 
				asjscompc
					30: SCRIPT_HOME=`dirname $0` 
				compc
					30: SCRIPT_HOME=`dirname $0` 
				externc
					28: SCRIPT_HOME=`dirname $0` 
				jquery
					28: SCRIPT_HOME=`dirname $0` 
				mxmlc
					28: SCRIPT_HOME=`dirname $0` 
			scripts
				deploy.sh
					64: RELBASEDIR=$(dirname $0) 
				setuplaunches.sh
					49: BASEDIR=$(dirname $0) 
		js
			bin
				asjsc
					28: SCRIPT_HOME=`dirname $0` 
				asjscompc
					30: SCRIPT_HOME=`dirname $0` 
				compc
					30: SCRIPT_HOME=`dirname $0` 
				externc
					28: SCRIPT_HOME=`dirname $0` 
				jquery
					28: SCRIPT_HOME=`dirname $0` 
				mxmlc
					28: SCRIPT_HOME=`dirname $0` 
				scripts
					deploy.sh
						64: RELBASEDIR=$(dirname $0) 
					setuplaunches.sh
						49: BASEDIR=$(dirname $0)
{code}

  was:
Any place {{`dirname $0`}} appears in a shell script, it should be changed to {{`dirname "$0"`}}
so that it works with paths containing spaces.

This affects all shell scripts in flexjs/js/bin.



> bug in mxmlc/compc/etc scripts when flexjs path contains spaces
> ---------------------------------------------------------------
>
>                 Key: FLEX-35006
>                 URL: https://issues.apache.org/jira/browse/FLEX-35006
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Falcon, FlexJS
>    Affects Versions: Apache FlexJS 0.5.0
>            Reporter: Andy Dufilie
>
> Any place {{`dirname $0`}} appears in a shell script, it should be changed to {{`dirname
"$0"`}} so that it works with paths containing spaces.
> A quick search shows which files are affected:
> {code}
> flexjs
> 	bin
> 		compc (2 matches)
> 			29: SCRIPT_HOME=`dirname $0` 
> 			37: SCRIPT_HOME=`dirname $0` 
> 		mxmlc (2 matches)
> 			29: SCRIPT_HOME=`dirname $0` 
> 			37: SCRIPT_HOME=`dirname $0` 
> 		optimizer
> 			29: SCRIPT_HOME=`dirname $0` 
> 		swcdepends (2 matches)
> 			29: SCRIPT_HOME=`dirname $0` 
> 			37: SCRIPT_HOME=`dirname $0` 
> 		swfdump
> 			29: SCRIPT_HOME=`dirname $0` 
> 	flex-asjs
> 		js
> 			bin
> 				asjsc
> 					28: SCRIPT_HOME=`dirname $0` 
> 				asjscompc
> 					30: SCRIPT_HOME=`dirname $0` 
> 				compc
> 					30: SCRIPT_HOME=`dirname $0` 
> 				externc
> 					28: SCRIPT_HOME=`dirname $0` 
> 				jquery
> 					28: SCRIPT_HOME=`dirname $0` 
> 				mxmlc
> 					28: SCRIPT_HOME=`dirname $0` 
> 			scripts
> 				deploy.sh
> 					64: RELBASEDIR=$(dirname $0) 
> 				setuplaunches.sh
> 					49: BASEDIR=$(dirname $0) 
> 		js
> 			bin
> 				asjsc
> 					28: SCRIPT_HOME=`dirname $0` 
> 				asjscompc
> 					30: SCRIPT_HOME=`dirname $0` 
> 				compc
> 					30: SCRIPT_HOME=`dirname $0` 
> 				externc
> 					28: SCRIPT_HOME=`dirname $0` 
> 				jquery
> 					28: SCRIPT_HOME=`dirname $0` 
> 				mxmlc
> 					28: SCRIPT_HOME=`dirname $0` 
> 				scripts
> 					deploy.sh
> 						64: RELBASEDIR=$(dirname $0) 
> 					setuplaunches.sh
> 						49: BASEDIR=$(dirname $0)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message