Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-35006

bug in mxmlc/compc/etc scripts when flexjs path contains spaces

    XMLWordPrintableJSON

Details

    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:

      bin/compc (2 matches)
      	29: SCRIPT_HOME=`dirname $0` 
      	37: SCRIPT_HOME=`dirname $0` 
      bin/mxmlc (2 matches)
      	29: SCRIPT_HOME=`dirname $0` 
      	37: SCRIPT_HOME=`dirname $0` 
      bin/optimizer
      	29: SCRIPT_HOME=`dirname $0` 
      bin/swcdepends (2 matches)
      	29: SCRIPT_HOME=`dirname $0` 
      	37: SCRIPT_HOME=`dirname $0` 
      bin/swfdump
      	29: SCRIPT_HOME=`dirname $0` 
      flex-asjs/js/bin/asjsc
      	28: SCRIPT_HOME=`dirname $0` 
      flex-asjs/js/bin/asjscompc
      	30: SCRIPT_HOME=`dirname $0` 
      flex-asjs/js/bin/compc
      	30: SCRIPT_HOME=`dirname $0` 
      flex-asjs/js/bin/externc
      	28: SCRIPT_HOME=`dirname $0` 
      flex-asjs/js/bin/jquery
      	28: SCRIPT_HOME=`dirname $0` 
      flex-asjs/js/bin/mxmlc
      	28: SCRIPT_HOME=`dirname $0` 
      flex-asjs/scripts/deploy.sh
      	64: RELBASEDIR=$(dirname $0) 
      flex-asjs/scripts/setuplaunches.sh
      	49: BASEDIR=$(dirname $0) 
      js/bin/asjsc
      	28: SCRIPT_HOME=`dirname $0` 
      js/bin/asjscompc
      	30: SCRIPT_HOME=`dirname $0` 
      js/bin/compc
      	30: SCRIPT_HOME=`dirname $0` 
      js/bin/externc
      	28: SCRIPT_HOME=`dirname $0` 
      js/bin/jquery
      	28: SCRIPT_HOME=`dirname $0` 
      js/bin/mxmlc
      	28: SCRIPT_HOME=`dirname $0` 
      scripts/deploy.sh
      	64: RELBASEDIR=$(dirname $0) 
      scripts/setuplaunches.sh
      	49: BASEDIR=$(dirname $0) 
      

      Attachments

        Activity

          People

            aharui Alex Harui
            adufilie Andy Dufilie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: