File tree 1 file changed +5
-23
lines changed
1 file changed +5
-23
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
source /usr/share/annyung-release/functions.d/bash/functions
4
+ setAnsi
5
+ tcolor=" ${bblack}${bgwhite} "
4
6
5
7
errmsg () {
6
8
echo " $* " 1>&2
7
9
}
8
10
9
11
usage () {
10
- echo " Usage: $0 [clean|pack|test [php-version]]"
12
+ echo " ${bcyan} Usage:${normal} $0 [clean|pack|test [php-version]]"
11
13
exit 1
12
14
}
13
15
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
-
34
16
opts=$( getopt -u -o h -l help -- " $@ " )
35
17
[ $? != 0 ] && usage
36
18
@@ -62,8 +44,8 @@ case "${mode}" in
62
44
63
45
rm -f package.xml
64
46
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} ----->
67
49
EOL
68
50
69
51
[ -f Makefile ] && make distclean
You can’t perform that action at this time.
0 commit comments