scripts: do not allow commas in directories, it breaks things
author"Yann E. MORIN" <yann.morin.1998@free.fr>
Fri Jan 03 00:13:15 2014 +0100 (2014-01-03)
changeset 32678e2077dfc250
parent 3266 84fcb0cae9a4
child 3268 d461981ab9cc
scripts: do not allow commas in directories, it breaks things

The comma is used by the autotools as separator in many sed expressions,
which break if a directory contains commas.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
scripts/crosstool-NG.sh.in
     1.1 --- a/scripts/crosstool-NG.sh.in	Thu Jan 02 10:35:44 2014 +0100
     1.2 +++ b/scripts/crosstool-NG.sh.in	Fri Jan 03 00:13:15 2014 +0100
     1.3 @@ -77,6 +77,9 @@
     1.4              *:*)
     1.5                  CT_Abort "'CT_${d}_DIR'='${dir}' contains a colon in it.\nDon't use colons in paths, it breaks things."
     1.6                  ;;
     1.7 +            *,*)
     1.8 +                CT_Abort "'CT_${d}_DIR'='${dir}' contains a comma in it.\nDon't use commas in paths, it breaks things."
     1.9 +                ;;
    1.10          esac
    1.11  done
    1.12