?? missingflex
字號:
#! /bin/shif test "$#" -lt "1"; then echo "" echo "Error: $0 can only be called with at least one command line argument" echo "" echo "Usage: $0 [OPTIONS] FILE" echo "" echo "Where FILE is a flex source file" echo "" echo "all options except -o are ignored. Use -oOUTFILE to specify the output" echo "file" echo "" exit 1fiOUTPUT=""for PARM in $*; do CHECK_FOR_OUTPUT_PARM=`echo "$PARM" | sed s/[^-o].*$//`; if test "$CHECK_FOR_OUTPUT_PARM" = "-o"; then OUTPUT=`echo "$PARM" | sed s/^-o//` fi LAST=$PARMdoneif ! test -e $LAST; then echo "" echo "ERROR: Could not find $1" echo "" exit 1fiEXT=`echo "$LAST" | sed s/^[^.]*//`BASE=`echo "$LAST" | sed s/$EXT//`if test "$EXT" != ".l" -a "$EXT" != ".ll"; then echo "" echo "ERROR: $LAST should end in \`.l' or \`.ll'" echo "" exit 1fiif test "$EXT" = ".l"; then NEW_EXT=".c"else NEW_EXT=".cc"fiif test "$OUTPUT" = ""; then OUTPUT="$BASE$NEW_EXT"fiPOSSIBLE="$BASE$NEW_EXT"if test -e "$OUTPUT"; then touch "$OUTPUT" echo "" echo "WARNING: \`flex' is missing on your system. You should only need it if" echo " you modified a \`.l' or \`.ll' file. You may need the \`Flex'" echo " package in order for those modifications to take effect. You " echo " can get \`Flex' from any GNU archive site." echo ""elif test -e "$POSSIBLE"; then cp "$POSSIBLE" "$OUTPUT" echo "" echo "WARNING: \`flex' is missing on your system. You should only need it if" echo " you modified a \`.l' or \`.ll' file. You may need the \`Flex'" echo " package in order for those modifications to take effect. You " echo " can get \`Flex' from any GNU archive site." echo ""else echo "" echo "ERROR: \`flex' is missing on your system and the flex generated" echo " source could not be found. You can get \`Flex' from any " echo " GNU archive site." echo ""fi
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -