📄 check_tools.sh
字号:
#!/bin/bashVERSION_BUILD_CHECK_TOOLS='1.1.1.1'PACKAGES="$PACKAGES CHECK_TOOLS"# check_tools# input : none# output: true if tools are up to date, false if notcheck_tools () { builddir=`get_property root.build` tool_classdir=`PROPERTY_OVERRIDE="$PREFIX/tools/build.properties" get_property opennms.tools.classes` tool_classdir=`echo "$tool_classdir" | sed -e s'#${root.build}#'"$builddir"'#'` NEW_FILES=0# for dir in "ant" "if"; do for dir in "if"; do for file in `find "${PREFIX}/tools/${dir}" -name \*.java`; do file=`echo "$file" | sed -e s"#^${PREFIX}/tools/${dir}/##" -e s'#\.java$##'` if [ "${PREFIX}/tools/${dir}/${file}.java" -nt "${tool_classdir}/${file}.class" ]; then NEW_FILES=$(($NEW_FILES+1)) elif [ ! -f "${tool_classdir}/${file}.class" ]; then NEW_FILES=$(($NEW_FILES+1)) fi done done return $NEW_FILES}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -