Rename db_bootstrap.sed to db_sql2c.sed
Side effect of the db schema patch, now a mere cosmetic change. Change-Id: I47a101e3b76b2125d786f22bf100604cf5e8eb40
This commit is contained in:
parent
8f3a7cce80
commit
4655e6f1fe
|
@ -15,7 +15,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/include \
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
populate_hlr_db.pl \
|
populate_hlr_db.pl \
|
||||||
db_bootstrap.sed \
|
db_sql2c.sed \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
BUILT_SOURCES = \
|
BUILT_SOURCES = \
|
||||||
|
@ -114,11 +114,11 @@ osmo_euse_demo_LDADD = \
|
||||||
|
|
||||||
BOOTSTRAP_SQL = $(top_srcdir)/sql/hlr.sql
|
BOOTSTRAP_SQL = $(top_srcdir)/sql/hlr.sql
|
||||||
|
|
||||||
db_bootstrap.h: $(BOOTSTRAP_SQL) $(srcdir)/db_bootstrap.sed
|
db_bootstrap.h: $(BOOTSTRAP_SQL) $(srcdir)/db_sql2c.sed
|
||||||
echo "/* DO NOT EDIT THIS FILE. It is generated from osmo-hlr.git/sql/hlr.sql */" > "$@"
|
echo "/* DO NOT EDIT THIS FILE. It is generated from files in osmo-hlr.git/sql/ */" > "$@"
|
||||||
echo "#pragma once" >> "$@"
|
echo "#pragma once" >> "$@"
|
||||||
echo "static const char *stmt_bootstrap_sql[] = {" >> "$@"
|
echo "static const char *stmt_bootstrap_sql[] = {" >> "$@"
|
||||||
cat "$(BOOTSTRAP_SQL)" \
|
cat "$(BOOTSTRAP_SQL)" \
|
||||||
| sed -f "$(srcdir)/db_bootstrap.sed" \
|
| sed -f "$(srcdir)/db_sql2c.sed" \
|
||||||
>> "$@"
|
>> "$@"
|
||||||
echo "};" >> "$@"
|
echo "};" >> "$@"
|
||||||
|
|
|
@ -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
|
# We want each SQL statement line wrapped in "...\n", and each end (";") to
|
||||||
# become a comma:
|
# become a comma:
|
Loading…
Reference in New Issue