parser: gnu sed do not like spaces
authorJean Privat <jean@pryen.org>
Sat, 22 Jan 2011 03:04:59 +0000 (22:04 -0500)
committerJean Privat <jean@pryen.org>
Sat, 22 Jan 2011 03:04:59 +0000 (22:04 -0500)
Fix 7d4ae02b1e07bc065063.
Next time do not forget to check that the parser is really buildable.

Signed-off-by: Jean Privat <jean@pryen.org>

src/parser/Makefile

index 0bb0426..d752d1e 100644 (file)
@@ -27,7 +27,7 @@ parser.nit: .nit.sablecc3 xss/*.xss
        ${SABLECC} -c .nit.sablecc3.dump -t xss/main.xss -p usermodule parser_nodes .nit.sablecc3
        mv -f -- parser.nit .parser-nofact.nit
        ./fact_parser.pl .parser-nofact.nit > parser.nit
-       LANG=C sed -i .orig -e 's/\([ \[]\)P\([A-Z]\)/\1A\2/g' parser.nit parser_abs.nit parser_prod.nit parser_tables.nit lexer.nit
+       LANG=C sed -i.orig -e 's/\([ \[]\)P\([A-Z]\)/\1A\2/g' parser.nit parser_abs.nit parser_prod.nit parser_tables.nit lexer.nit
 
 clean:
        rm -f -- .nit.sablecc3 .nit.sablecc3.dump .parser-nofact.nit || true