]> git.saurik.com Git - apple/security.git/blob - OSX/libsecurity_codesigning/update_requirement_syntax
Security-58286.31.2.tar.gz
[apple/security.git] / OSX / libsecurity_codesigning / update_requirement_syntax
1 SRCROOT=$PWD
2 antlr=$SRCROOT/antlr2/antlr.jar
3 DEBUG=""
4 mkdir -p $SRCROOT/lib
5 rm -f $SRCROOT/lib/Requirement{Parser,Lexer}*
6 java -cp "$antlr" antlr.Tool -o $SRCROOT/lib $DEBUG requirements.grammar || exit 1
7 sed -n 's/^.*=\(".*"\)=.*$/ \1,/p' $SRCROOT/lib/RequirementParserTokenTypes.txt >$SRCROOT/lib/RequirementKeywords.h