taruninstall.sh
来自「firebird源代码」· Shell 代码 · 共 36 行
SH
36 行
#! /bin/sh# THis one is not finished by a long shot, but was some work on doing an# uninstall for a .tar.gz install# THe way this works is that the buildroot file is stored relative to the root# directory and a tar -xzf at root directory will restore all the files in # the position that we want them to beOrigDir=`pwd`cd /Dirs=""for i in `tar -tzf $OrigDir/buildroot.tar.gz` do if [ -f $i -o -L $i ] then rm -f $i elif [ -d $i ] then Dirs="$i $Dirs" fi doneif [ ! -z $Dirs ] then for i in $Dirs do checkIfCanRemoveDir $i doneficd $OrigDir
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?