Skip to content

Commit

Permalink
Fixed s2h awk regexp bug.
Browse files Browse the repository at this point in the history
In Ubuntu 9.10 x64 the awk regexp used is invalid.
  • Loading branch information
José Dinuncio committed Jan 13, 2010
1 parent e7a51a8 commit 1006fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s2h
Expand Up @@ -3,6 +3,6 @@
grep '^defvar' $1 | cut -d ',' -f 2 | sed -e 's/ */var_/' > $1.tmp
grep '^def' $1 | cut -d ',' -f 2 | sed -e 's/ *//' >> $1.tmp
grep '^def' $1 | cut -d ' ' -f 2 | cut -d ',' -f 1 >> $1.tmp
sort -u $1.tmp | awk '/^[A-Za-z_][A-Za-Z_0-9]*$$/ {print "extern " $$0}' > ${1%.s}.h
sort -u $1.tmp | awk ' /^[[:alpha:]_][[:alnum:]_]*$/{print "extern " $$0}' > ${1%.s}.h
rm $1.tmp

0 comments on commit 1006fa7

Please sign in to comment.