脚本内添加安装、卸载功能
This commit is contained in:
parent
5df2ddbd89
commit
494e3724ed
20
build_mv.sh
20
build_mv.sh
@ -47,7 +47,13 @@ function MV() {
|
||||
$STRIP ./rm_
|
||||
}
|
||||
|
||||
install_() {
|
||||
cp rm_ /bin/
|
||||
}
|
||||
|
||||
uninstall_() {
|
||||
rm /bin/rm_
|
||||
}
|
||||
|
||||
init
|
||||
|
||||
@ -57,5 +63,19 @@ if test "$@" = "clean"; then
|
||||
exit 0;
|
||||
fi
|
||||
|
||||
if test "$@" = "install"; then
|
||||
install_
|
||||
exit 0;
|
||||
fi
|
||||
|
||||
if test "$@" = "uninstall"; then
|
||||
uninstall_
|
||||
exit 0;
|
||||
fi
|
||||
|
||||
|
||||
LIB
|
||||
MV
|
||||
|
||||
exit 0
|
||||
20220401
|
Loading…
Reference in New Issue
Block a user