📄 mkpackage
字号:
#! /bin/sh#this bash used to collect the files which needed when run## Created By Xu Yuan <xychn15@yahoo.com.cn> @2005-9-20playerDir="SEU-3D"#-------------------------------------------------------------------------------------- printf '\33[7;31m'echo "make package SEU-3D..." printf '\33[0m'{ test ! -d $playerDir || { find $playerDir -type d ! -perm -200 -exec chmod u+w {} ';' && rm -fr $playerDir; }; }mkdir $playerDirmkdir $playerDir/logsif `test -f 'src/seu-3d-player' `; \then cp -f src/seu-3d-player $playerDir; \else rm -fr $playerDir; echo 'can not find src/.libs/seu-3d-player'; exit 1; \fiif `test -f 'src/formations.conf' `; \then cp -f src/formations.conf $playerDir; \else rm -fr $playerDir; echo 'can not find src/formations.conf'; exit 1; \fiif `test -f 'src/README-PLAYER' `; \then cp -f src/README-PLAYER $playerDir/README; \else rm -fr $playerDir; echo 'can not find src/README-PLAYER'; exit 1; \fitar chof - $playerDir | GZIP=--best gzip -c >$playerDir.tar.gz{ test ! -d $playerDir || { find $playerDir -type d ! -perm -200 -exec chmod u+w {} ';' && rm -fr $playerDir; }; }#------------------------------------------------------------------------------------------------------echo '====================================' printf '\33[7;31m'echo $playerDir 'are ready!' printf '\33[0m\a'echo '===================================='
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -