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

📄 upgrade.in

📁 linux下各种patch的管理工具
💻 IN
字号:
#! @BASH@#  This script is free software; you can redistribute it and/or modify#  it under the terms of the GNU General Public License version 2 as#  published by the Free Software Foundation.##  See the COPYING and AUTHORS files for more details.# Don't abort in version check.skip_version_check=1# Read in library functionsif [ "$(type -t patch_file_name)" != function ]then	if ! [ -r $QUILT_DIR/scripts/patchfns ]	then		echo "Cannot read library $QUILT_DIR/scripts/patchfns" >&2		exit 1	fi	. $QUILT_DIR/scripts/patchfnsfiusage(){	printf $"Usage: quilt upgrade\n"	if [ x$1 = x-h ]	then		printf $"Upgrade the meta-data in a working tree from an old version of quilt to thecurrent version. This command is only needed when the quilt meta-data formathas changed, and the working tree still contains old-format meta-data. In thatcase, quilt will request to run \`quilt upgrade'."		exit 0	else		exit 1	fi}options=`getopt -o h -- "$@"`if [ $? -ne 0 ]then	usagefieval set -- "$options"while truedo	case "$1" in	-h)		usage -h ;;	--)		shift		break ;;	esacdoneif [ $# -gt 1 ]then	usagefiif version_checkthen	printf $"The quilt meta-data in %s are already in the version %s format; nothing to do\n" "$QUILT_PC/" "$DB_VERSION"	exit 0fiprintf $"Converting meta-data to version %s\n" "$DB_VERSION"# Previously we have stripped standard patch extensions (.dif .diff# .patch .gz .bz2) of patch names; we have used the mangled names in# .pc/applied-patches, .pc/$patch/, but not in the series file.for patch in $(applied_patches)do	proper_name="$(grep "^$(quote_bre $patch)"'\(\|\.patch\|\.diff?\)\(\|\.gz\|\.bz2\)\([ \t]\|$\)' $SERIES)"	proper_name=${proper_name#$QUILT_PATCHES/}	proper_name=${proper_name%% *}	if [ -z "$proper_name" ]	then		failed=1		break	fi	if [ "$patch" != "$proper_name" -a -d $QUILT_PC/$patch ] \	   && grep -q "^$(quote_bre $patch)\$" \		   $QUILT_PC/applied-patches	then		mv $QUILT_PC/$patch $QUILT_PC/$proper_name \			|| failed=1		rename_in_db $patch $proper_name \			|| failed=1		[ -z "$failed" ] || break	fidoneif [ -n "$failed" ]then        printf $"Conversion failed\n" >&2	printf $"Please remove all patches using \`quilt pop -a' from the quilt version used to create this working tree, or remove the %s directory and apply the patches from scratch.\n" "$QUILT_PC" >&2	exit 1fiecho $DB_VERSION > $QUILT_PC/.version### Local Variables:### mode: shell-script### End:# vim:filetype=sh

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -