diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-12-04 14:13:47 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-12-04 14:13:47 +0100 |
commit | 4655e6f1fe91676df5f9a6946feca54ac87b5fe2 (patch) | |
tree | 0de1efa24a0b5d5c31e01cca737e75e666765f41 | |
parent | 8f3a7cce80955082daeb4372472a6dd94035200a (diff) |
Rename db_bootstrap.sed to db_sql2c.sed
Side effect of the db schema patch, now a mere cosmetic change.
Change-Id: I47a101e3b76b2125d786f22bf100604cf5e8eb40
-rw-r--r-- | src/Makefile.am | 8 | ||||
-rw-r--r-- | src/db_sql2c.sed (renamed from src/db_bootstrap.sed) | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 4f167f0..7ee019f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -15,7 +15,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/include \ EXTRA_DIST = \ populate_hlr_db.pl \ - db_bootstrap.sed \ + db_sql2c.sed \ $(NULL) BUILT_SOURCES = \ @@ -114,11 +114,11 @@ osmo_euse_demo_LDADD = \ BOOTSTRAP_SQL = $(top_srcdir)/sql/hlr.sql -db_bootstrap.h: $(BOOTSTRAP_SQL) $(srcdir)/db_bootstrap.sed - echo "/* DO NOT EDIT THIS FILE. It is generated from osmo-hlr.git/sql/hlr.sql */" > "$@" +db_bootstrap.h: $(BOOTSTRAP_SQL) $(srcdir)/db_sql2c.sed + echo "/* DO NOT EDIT THIS FILE. It is generated from files in osmo-hlr.git/sql/ */" > "$@" echo "#pragma once" >> "$@" echo "static const char *stmt_bootstrap_sql[] = {" >> "$@" cat "$(BOOTSTRAP_SQL)" \ - | sed -f "$(srcdir)/db_bootstrap.sed" \ + | sed -f "$(srcdir)/db_sql2c.sed" \ >> "$@" echo "};" >> "$@" diff --git a/src/db_bootstrap.sed b/src/db_sql2c.sed index 60b8243..1d301f8 100644 --- a/src/db_bootstrap.sed +++ b/src/db_sql2c.sed @@ -1,4 +1,4 @@ -# Input to this is sql/hlr.sql. +# Input to this are sql/*.sql files. # # We want each SQL statement line wrapped in "...\n", and each end (";") to # become a comma: |