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

📄 treeunlink.sh

📁 PSP开发环境(Linux) 包含PSPLINK 请自行选择需要安装的库及源代码
💻 SH
字号:
#!/bin/sh## treeunlink.sh - Tree Unlinking Script## Copyright (c) 2001 M. R. Brown <mrbrown@0xd6.org>## This script attempts to restore a previously tree-linked tree.# It's the anti-thesis of (and based on) treelink.sh by Paul Mundt.## Released under the terms of the GNU GPL v2[ "$#" -ne "1" ] && echo "Usage: $0 <kernel tree>" && exit 1cd $1 || exit 1echo -n "Building file list ... "LIST=`find * \( -type d -name CVS -prune \) -o -type l -print`echo -e "done."[ -z "$LIST" ] && echo "No linked files to unlink." && exit 1echo -n "Restoring originals .. "for file in $LIST; do	DIR=`dirname $file`	ofile=`basename $file`	rm -f $file	if [ -d ${DIR}/.orig  -a  -e ${DIR}/.orig/$ofile ]; then		mv ${DIR}/.orig/$ofile $file		[ -z "`ls ${DIR}/.orig`" ] && rmdir ${DIR}/.orig	fidoneecho -e "done."

⌨️ 快捷键说明

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