treelink.sh.svn-base

来自「PSP开发环境(Linux) 包含PSPLINK 请自行选择需要安装的库及源」· SVN-BASE 代码 · 共 47 行

SVN-BASE
47
字号
#!/bin/sh## treelink.sh - Tree Linking Script## Copyright (C) 2001 Paul Mundt <lethal@chaoticdreams.org>## Modified by M. R. Brown <mrbrown@0xd6.org>## A simple shell script for linking a drop in tree into a stock# kernel tree. Usable for drop in trees such as the linux-mips# and linuxconsole trees.## Released under the terms of the GNU GPL v2#[ "$#" -ne "2" ] && echo "Usage: $0 <drop in tree> <kernel tree>" && exit 1CPWD=`which pwd`ODIR=`$CPWD`cd $1 || exit 1LDIR=`$CPWD`echo -n "Building file list ... "LIST=`find * \( -type d -name CVS -prune \) -o -type f -print`echo -e "done."cd ${ODIR}cd $2 || exit 1# Make this a seperate step so that the user can cancel the operationecho -n "Saving originals ..... "for file in $LIST; do	if [ -e $file  -a  ! -h $file ]; then		DIR=`dirname $file`		ofile=`basename $file`		[ ! -d ${DIR}/.orig ] && mkdir -p ${DIR}/.orig		cp $file ${DIR}/.orig/$ofile	fidoneecho -e "done."echo -n "Linking files ........ "for file in $LIST; do	DIR=`dirname $file`	[ ! -d $DIR ] && mkdir -p $DIR	ln -sf $LDIR/$file $filedoneecho -e "done."

⌨️ 快捷键说明

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