Skip to content

Commit

Permalink
Per #2408, switch to more compact sed -i option.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway committed Jan 13, 2023
1 parent 48718d5 commit 888a02c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/basic/vx_config/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ include ${top_srcdir}/Make-include
# Initialize yystate to 8 to allow for empty configuartion files

AM_YFLAGS = --defines=config.tab.h -p config ; \
cat config.tab.cc | sed 's/yystate = 0;/yystate = 8;/g' > config.tab.cc.patch ; \
mv config.tab.cc.patch config.tab.cc
sed -i 's/yystate = 0;/yystate = 8;/g' config.tab.cc

# The library

Expand Down
3 changes: 1 addition & 2 deletions src/basic/vx_config/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,7 @@ MAINTAINERCLEANFILES = Makefile.in
# Yacc/lex flags
# Initialize yystate to 8 to allow for empty configuartion files
AM_YFLAGS = --defines=config.tab.h -p config ; \
cat config.tab.cc | sed 's/yystate = 0;/yystate = 8;/g' > config.tab.cc.patch ; \
mv config.tab.cc.patch config.tab.cc
sed -i 's/yystate = 0;/yystate = 8;/g' config.tab.cc


# The library
Expand Down

0 comments on commit 888a02c

Please sign in to comment.