diff options
Diffstat (limited to 'source4/script/lex_compile.sh')
-rwxr-xr-x | source4/script/lex_compile.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/script/lex_compile.sh b/source4/script/lex_compile.sh index 09f8253af7..f33a7f0fba 100755 --- a/source4/script/lex_compile.sh +++ b/source4/script/lex_compile.sh @@ -18,7 +18,9 @@ if [ -r $DEST ]; then fi TOP=`pwd` if cd $dir && $LEX $file; then - sed '/^#/ s|$base.yy\.c|$DEST|' $base.yy.c > $base.c - rm -f $base.yy.c + if [ -r $base.yy.c ];then + sed '/^#/ s|$base.yy\.c|$DEST|' $base.yy.c > $base.c + rm -f $base.yy.c + fi fi cd $TOP |