Skip to content

Commit b03c065

Browse files
committed
normalize directory structure: bin, lib, doc, etc #87
1 parent 62ac01f commit b03c065

30 files changed

+73
-79
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ PS:
2323
----------------------
2424

2525
```bash
26-
source <(curl -fsSL https://raw.githubusercontent.com/oldratlee/useful-scripts/master/test-cases/self-installer.sh)
26+
source <(curl -fsSL https://raw.githubusercontent.com/oldratlee/useful-scripts/release-2.x/test-cases/self-installer.sh)
2727
```
2828

2929
更多下载&使用方式,参见[下载使用](docs/install.md)

a2l renamed to bin/a2l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# $ ./a2l arg1 arg2
77
# $ ./a2l *.txt
88
#
9-
# @online-doc https://github.com/oldratlee/useful-scripts/blob/master/docs/shell.md#-a2l
9+
# @online-doc https://github.com/oldratlee/useful-scripts/blob/dev-2.x/docs/shell.md#-a2l
1010
# @author Jerry Lee (oldratlee at gmail dot com)
1111

1212

ap renamed to bin/ap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# # print Absolute Path of arguments.
99
# $ ./ap a.txt ../dir1/b.txt
1010
#
11-
# @online-doc https://github.com/oldratlee/useful-scripts/blob/master/docs/shell.md#-ap-and-rp
11+
# @online-doc https://github.com/oldratlee/useful-scripts/blob/dev-2.x/docs/shell.md#-ap-and-rp
1212
# @author Jerry Lee (oldratlee at gmail dot com)
1313

1414
[ $# -eq 0 ] && files=(.) || files=("$@")

c renamed to bin/c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# $ c echo "hello world!"
77
# $ echo "hello world!" | c
88
#
9-
# @online-doc https://github.com/oldratlee/useful-scripts/blob/master/docs/shell.md#-c
9+
# @online-doc https://github.com/oldratlee/useful-scripts/blob/dev-2.x/docs/shell.md#-c
1010
# @author Jerry Lee (oldratlee at gmail dot com)
1111

1212
set -e

coat renamed to bin/coat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# $ coat /path/to/file1
88
# $ coat /path/to/file1 /path/to/file2
99
#
10-
# @online-doc https://github.com/oldratlee/useful-scripts/blob/master/docs/shell.md#-coat
10+
# @online-doc https://github.com/oldratlee/useful-scripts/blob/dev-2.x/docs/shell.md#-coat
1111
# @author Jerry Lee (oldratlee at gmail dot com)
1212

1313
set -e

bin/console-text-color-themes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../lib/console-text-color-themes.sh

echo-args renamed to bin/echo-args

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# @Function
33
# print arguments in human and debugging friendly style.
44
#
5-
# @online-doc https://github.com/oldratlee/useful-scripts/blob/master/docs/shell.md#-echo-args
5+
# @online-doc https://github.com/oldratlee/useful-scripts/blob/dev-2.x/docs/shell.md#-echo-args
66
# @author Jerry Lee (oldratlee at gmail dot com)
77

88
readonly ec=$'\033' # escape char

find-in-jars renamed to bin/find-in-jars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# $ find-in-jars 'Service\.class$' -e jar -e zip
1212
# $ find-in-jars 'Mon[^$/]*Service\.class$' -s ' <-> '
1313
#
14-
# @online-doc https://github.com/oldratlee/useful-scripts/blob/master/docs/java.md#-find-in-jars
14+
# @online-doc https://github.com/oldratlee/useful-scripts/blob/dev-2.x/docs/java.md#-find-in-jars
1515
# @author Jerry Lee (oldratlee at gmail dot com)
1616

1717
readonly PROG="`basename "$0"`"

rp renamed to bin/rp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# # if more than 1 argument, print relative path to last argument.
99
# $ ./rp a.txt ../b.txt /etc/passwd /etc/apache2
1010
#
11-
# @online-doc https://github.com/oldratlee/useful-scripts/blob/master/docs/shell.md#-ap-and-rp
11+
# @online-doc https://github.com/oldratlee/useful-scripts/blob/dev-2.x/docs/shell.md#-ap-and-rp
1212
# @author Jerry Lee (oldratlee at gmail dot com)
1313

1414
[ $# -eq 0 ] && {
@@ -35,5 +35,5 @@ for f in "${files[@]}" ; do
3535
echo "$f does not exists!"
3636
continue
3737
}
38-
realpath "$f" --relative-to="$relativeTo"
38+
realpath "$f" --relative-to="$relativeTo"
3939
done

show-busy-java-threads renamed to bin/show-busy-java-threads

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# @Usage
66
# $ ./show-busy-java-threads
77
#
8-
# @online-doc https://github.com/oldratlee/useful-scripts/blob/master/docs/java.md#-show-busy-java-threads
8+
# @online-doc https://github.com/oldratlee/useful-scripts/blob/dev-2.x/docs/java.md#-show-busy-java-threads
99
# @author Jerry Lee (oldratlee at gmail dot com)
1010
# @author superhj1987 (superhj1987 at 126 dot com)
1111

0 commit comments

Comments
 (0)