skip export FOO = 'bar' in autoconf.mk
git-svn-id: svn://10.0.0.236/trunk@244923 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
1f469edd2b
commit
00dc7169b6
@ -118,7 +118,7 @@ autoconf.js: $(DEPTH)/config/autoconf.mk Makefile
|
||||
# strip comments, escape \ and ", use only assignment lines that
|
||||
# don't end in backslashes and don't have variables, and then
|
||||
# convert to JS properties
|
||||
cat $< | perl -p -e 's/#.*//;s,\\,\\\\,g;s,",\\",g' | grep '=' | grep -v '\\$$' | grep -v '\$$' | perl -p -e 's/[ \t]*:?= *(.*)/: "\1",/' >> $@
|
||||
cat $< | egrep -v "^export " | perl -p -e 's/#.*//;s,\\,\\\\,g;s,",\\",g' | grep '=' | grep -v '\\$$' | grep -v '\$$' | perl -p -e 's/[ \t]*:?= *(.*)/: "\1",/' >> $@
|
||||
echo 'dummy_var: null' >> $@ # to avoid trailing comma
|
||||
echo '};' >> $@
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user