mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 05:16:58 +00:00
Utilities/Scripts: Drop stale extra flex arguments from lexer script
regenerate-lexers.bash still carried extra flex arguments for the CommandArgument lexer, which no longer exists. No remaining lexer uses per-lexer extra arguments, so remove the variable and the eval that looked it up. The generated lexers are unchanged.
This commit is contained in:
1 parent
cda028d08c
commit
168c36e6b3
1 file changed
+1
-4
@@ -9,8 +9,6 @@ fi
|
||||
|
||||
pushd "${BASH_SOURCE%/*}/../../Source/LexerParser" > /dev/null
|
||||
|
||||
extra_args_CommandArgument="--never-interactive --batch"
|
||||
|
||||
for lexer in \
|
||||
CTestResourceGroups \
|
||||
DependsJava \
|
||||
@@ -23,9 +21,8 @@ do
|
||||
in_file=cm${lexer}Lexer.in.l
|
||||
|
||||
if [[ (${in_file} -nt ${cxx_file}) || (${in_file} -nt ${h_file}) || (${forced} -gt 0) ]]; then
|
||||
extra_args=`eval echo \\${extra_args_\${lexer}}`
|
||||
echo "Generating Lexer ${lexer}"
|
||||
flex --nounistd ${extra_args} -DFLEXINT_H --noline --header-file=${h_file} -o${cxx_file} ${in_file}
|
||||
flex --nounistd -DFLEXINT_H --noline --header-file=${h_file} -o${cxx_file} ${in_file}
|
||||
sed -i 's/\s*$//' ${h_file} ${cxx_file} # remove trailing whitespaces
|
||||
sed -i '${/^$/d;}' ${h_file} ${cxx_file} # remove blank line at the end
|
||||
sed -i '1i#include "cmStandardLexer.h"' ${cxx_file} # add cmStandardLexer.h include
|
||||
|
||||
Reference in new issue
Block a user