⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 missingflex

📁 2009 ROBOCUP 仿真2DSERVER 源码
💻
字号:
#! /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 + -