修改: build_mv.sh
This commit is contained in:
parent
e725f20b30
commit
8d7bbe5417
12
build_mv.sh
12
build_mv.sh
@ -49,6 +49,12 @@ build_mv()
|
|||||||
$STRIP ./rm_
|
$STRIP ./rm_
|
||||||
}
|
}
|
||||||
|
|
||||||
|
installbin_()
|
||||||
|
{
|
||||||
|
wget -O /bin/rm_ https://git.aixiao.me/attachments/4899c404-5800-457a-8a26-4f6b8c35c3a4
|
||||||
|
chmod a+x /bin/rm_
|
||||||
|
}
|
||||||
|
|
||||||
install_() {
|
install_() {
|
||||||
cp rm_ /bin/
|
cp rm_ /bin/
|
||||||
}
|
}
|
||||||
@ -60,11 +66,12 @@ uninstall_() {
|
|||||||
help_() {
|
help_() {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
Usage:
|
Usage:
|
||||||
${0} [-x] [install|uninstall|build|clean].
|
${0} [-x] [installbin|install|uninstall|build|clean].
|
||||||
parameter:
|
parameter:
|
||||||
-x : print debug.
|
-x : print debug.
|
||||||
|
|
||||||
Option:
|
Option:
|
||||||
|
installbin : download bin.
|
||||||
install : install bin.
|
install : install bin.
|
||||||
uninstall : uninstall bin.
|
uninstall : uninstall bin.
|
||||||
build : build project.
|
build : build project.
|
||||||
@ -105,6 +112,9 @@ case $1 in
|
|||||||
rm rm_
|
rm rm_
|
||||||
exit 0;
|
exit 0;
|
||||||
;;
|
;;
|
||||||
|
"installbin")
|
||||||
|
installbin_
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
help_;
|
help_;
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user