projects
/
brisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fdf4f44
)
numeric sort for sql.d files
author
Matteo Nastasi (mop)
<nastasi@alternativeoutput.it>
Wed, 2 Dec 2015 07:13:40 +0000
(08:13 +0100)
committer
Matteo Nastasi (mop)
<nastasi@alternativeoutput.it>
Wed, 2 Dec 2015 07:13:40 +0000
(08:13 +0100)
sql/builder.sh
patch
|
blob
|
history
diff --git
a/sql/builder.sh
b/sql/builder.sh
index
2bb9917
..
f67fa23
100755
(executable)
--- a/
sql/builder.sh
+++ b/
sql/builder.sh
@@
-55,11
+55,11
@@
one_or_all() {
if [ "$1" ]; then
echo "$1"
elif [ "$TYPE_FILES" = "a" ]; then
if [ "$1" ]; then
echo "$1"
elif [ "$TYPE_FILES" = "a" ]; then
- find sql.d/ -name '[0-9]*' -type f | tr '\n' ' '
+ find sql.d/ -name '[0-9]*' -type f |
sort -n |
tr '\n' ' '
elif [ "$TYPE_FILES" = "d" ]; then
elif [ "$TYPE_FILES" = "d" ]; then
- find sql.d/ -name '[0-9]*' | egrep '.*_devel.sql$|^[^_]+.sql$' | tr '\n' ' '
+ find sql.d/ -name '[0-9]*' | egrep '.*_devel.sql$|^[^_]+.sql$' |
sort -n |
tr '\n' ' '
else
else
- find sql.d/ -name '[0-9]*' | egrep '^[^_]+.sql$' | tr '\n' ' '
+ find sql.d/ -name '[0-9]*' | egrep '^[^_]+.sql$' |
sort -n |
tr '\n' ' '
fi); do
echo "-- FILE BEG: $fil"
cat "$fil"
fi); do
echo "-- FILE BEG: $fil"
cat "$fil"