@@ -10,7 +10,7 @@ OUT="__bundle__"
10
10
11
11
12
12
bundle-library () {
13
- cat > " $OUT /lib.bundle .bash" << ENDBANNER
13
+ cat > " $OUT /lib._bundle_ .bash" << ENDBANNER
14
14
#########
15
15
#
16
16
# MageOps Bash Tools Library Bundle
@@ -27,16 +27,16 @@ $(git log --pretty=oneline --abbrev-commit --decorate=full -5 | sed 's/^/#
27
27
ENDBANNER
28
28
29
29
find " $LIB /" -type f -iname ' *.bash' | while read LIBMODULE ; do
30
- echo -e " \n\n####### BEGIN Library Module: $LIBMODULE #######\n" >> " $OUT /lib.bundle .bash"
31
- cat " $LIBMODULE " >> " $OUT /lib.bundle .bash" | head -1
32
- echo -e " \n####### END Library Module: $LIBMODULE #######" >> " $OUT /lib.bundle .bash"
30
+ echo -e " \n\n####### BEGIN Library Module: $LIBMODULE #######\n" >> " $OUT /lib._bundle_ .bash"
31
+ cat " $LIBMODULE " >> " $OUT /lib._bundle_ .bash" | head -1
32
+ echo -e " \n####### END Library Module: $LIBMODULE #######" >> " $OUT /lib._bundle_ .bash"
33
33
done
34
34
}
35
35
36
36
bundle-script () {
37
37
SCRIPT=" $1 "
38
38
OUTFILE=" $2 "
39
- NAME =" ${SCRIPT % .bash} "
39
+ OUTFILE =" ${OUTFILE % .bash} ._bundle_.bash "
40
40
41
41
cat > " $OUTFILE " << ENDBANNER
42
42
#!/usr/bin/env bash
@@ -48,7 +48,7 @@ bundle-script() {
48
48
#########
49
49
ENDBANNER
50
50
51
- cat " $OUT /lib.bundle .bash" | tail -n+2 >> " $OUTFILE "
51
+ cat " $OUT /lib._bundle_ .bash" | tail -n+2 >> " $OUTFILE "
52
52
53
53
ENDBANNER
54
54
@@ -60,7 +60,7 @@ ENDBANNER
60
60
ui::step " Clean $( ui::em $OUT ) " \
61
61
rm -rf " $OUT " ' &&' mkdir -p " $OUT "
62
62
63
- ui::step " Bundle library files to $( ui::em $OUT /lib.bundle .bash) " \
63
+ ui::step " Bundle library files to $( ui::em $OUT /lib._bundle_ .bash) " \
64
64
bundle-library
65
65
66
66
find bin -type f -iname ' *.bash' | while read SCRIPT ; do
0 commit comments