Skip to content

Commit 1b749c1

Browse files
committedMar 28, 2021
start 3.0.2
1 parent b3c9c7b commit 1b749c1

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed
 

‎manage.sh

+5-23
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,18 @@
11
#!/bin/bash
22

33
source /usr/share/annyung-release/functions.d/bash/functions
4+
setAnsi
5+
tcolor="${bblack}${bgwhite}"
46

57
errmsg () {
68
echo "$*" 1>&2
79
}
810

911
usage () {
10-
echo "Usage: $0 [clean|pack|test [php-version]]"
12+
echo "${bcyan}Usage:${normal} $0 [clean|pack|test [php-version]]"
1113
exit 1
1214
}
1315

14-
normal="$( tput sgr0 )"
15-
bold="$( tput bold )"
16-
black="$( tput setaf 0 )"
17-
red="$( tput setaf 1 )"
18-
green="$( tput setaf 2 )"
19-
yellow="$( tput setaf 3 )"
20-
blue="$( tput setaf 4 )"
21-
megenta="$( tput setaf 5 )"
22-
cyan="$( tput setaf 6 )"
23-
white="$( tput setaf 7 )"
24-
bblack="${bold}${black}"
25-
bred="${bold}${red}"
26-
bgreen="${bold}${green}"
27-
byellow="${bold}${yellow}"
28-
bblue="${bold}${blue}"
29-
bmegenta="${bold}${megenta}"
30-
bcyan="${bold}${cyan}"
31-
bwhite="${bold}${white}"
32-
tcolor="${bblack}$( tput setab 7 )"
33-
3416
opts=$(getopt -u -o h -l help -- "$@")
3517
[ $? != 0 ] && usage
3618

@@ -62,8 +44,8 @@ case "${mode}" in
6244
6345
rm -f package.xml
6446
find ./tests ! -name '*.phpt' -a ! -name '*.txt' -a -type f
65-
rm -f magic_arginfo.h && git checkout -- magic_arginfo.h${normal}
66-
----->
47+
rm -f magic_arginfo.h && git checkout -- magic_arginfo.h
48+
${normal}----->
6749
EOL
6850

6951
[ -f Makefile ] && make distclean

0 commit comments

Comments
 (0)