From db0ecb0547a5279447768ab01056151e8edbb2f6 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Mon, 30 Nov 2015 07:11:47 +0100 Subject: [PATCH] sql.d filename semantic changed --- sql/builder.sh | 8 ++++---- ...rm-games.sql.test => 066-insert-unnorm-games_test.sql} | 0 sql/sql.d/{900-anagr.sql.devel => 900-anagr_devel.sql} | 0 .../{910-usernet-sql.devel => 910-usernet_devel.sql} | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename sql/sql.d/{066-insert-unnorm-games.sql.test => 066-insert-unnorm-games_test.sql} (100%) rename sql/sql.d/{900-anagr.sql.devel => 900-anagr_devel.sql} (100%) rename sql/sql.d/{910-usernet-sql.devel => 910-usernet_devel.sql} (100%) diff --git a/sql/builder.sh b/sql/builder.sh index b71624d..2bb9917 100755 --- a/sql/builder.sh +++ b/sql/builder.sh @@ -55,12 +55,12 @@ one_or_all() { if [ "$1" ]; then echo "$1" elif [ "$TYPE_FILES" = "a" ]; then - echo sql.d/[0-9]* + find sql.d/ -name '[0-9]*' -type f | tr '\n' ' ' elif [ "$TYPE_FILES" = "d" ]; then - echo sql.d/[0-9]*.{sql,devel} + find sql.d/ -name '[0-9]*' | egrep '.*_devel.sql$|^[^_]+.sql$' | tr '\n' ' ' else - echo sql.d/[0-9]*.sql - fi); do + find sql.d/ -name '[0-9]*' | egrep '^[^_]+.sql$' | tr '\n' ' ' + fi); do echo "-- FILE BEG: $fil" cat "$fil" echo "-- FILE END: $fil" diff --git a/sql/sql.d/066-insert-unnorm-games.sql.test b/sql/sql.d/066-insert-unnorm-games_test.sql similarity index 100% rename from sql/sql.d/066-insert-unnorm-games.sql.test rename to sql/sql.d/066-insert-unnorm-games_test.sql diff --git a/sql/sql.d/900-anagr.sql.devel b/sql/sql.d/900-anagr_devel.sql similarity index 100% rename from sql/sql.d/900-anagr.sql.devel rename to sql/sql.d/900-anagr_devel.sql diff --git a/sql/sql.d/910-usernet-sql.devel b/sql/sql.d/910-usernet_devel.sql similarity index 100% rename from sql/sql.d/910-usernet-sql.devel rename to sql/sql.d/910-usernet_devel.sql -- 2.17.1