📄 colinux_def.sh
字号:
#!/bin/sh# This File exports the current version informations and# creates an NIS installer include file.# Remember: This file will be sourced from / as current directory.# Standard arguments for this script:# $1: src/colinux/VERSION# $2: src/colinux/os/winnt/user/install/colinux_def.incVERSION_FILE=$1TARGET_FILE=$2# Fallback for dash with defaultstest -z "$VERSION_FILE" && VERSION_FILE="src/colinux/VERSION"test -z "$TARGET_FILE" && TARGET_FILE="src/colinux/os/winnt/user/install/colinux_def.inc"# Get kernel version. bin/build-common.sh --get-vars# coLinux full version with "-preXX", if existPRE_VERSION=`cat $VERSION_FILE`# coLinux standard versionVERSION=`echo $PRE_VERSION | sed -e 's/\([^-]\+\).*/\1/'`cat > $TARGET_FILE << EOF!define VERSION "$VERSION"!define LONGVERSION "$VERSION.1"!define PRE_VERSION "$PRE_VERSION"!define KERNEL_VERSION "$KERNEL_VERSION"EOF
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -