Commit f90df53f authored by Mac Newbold's avatar Mac Newbold

Ignore diff returning 1 when theres a difference.

parent bdcfdf70
...@@ -17,17 +17,16 @@ ...@@ -17,17 +17,16 @@
all: db-create db-fill sitevars all: db-create db-fill sitevars
db-create: db-create:
@rm -f ./.tmp-db-create.sql @rm -f ./.tmp-db-create.sql ./.tmp-create-diff
@mysqldump -d tbdb > ./.tmp-db-create.sql @mysqldump -d tbdb > ./.tmp-db-create.sql
@diff ./database-create.sql ./.tmp-db-create.sql > ./.tmp-create-diff @-diff ./database-create.sql ./.tmp-db-create.sql > ./.tmp-create-diff
@if test -s ./.tmp-create-diff; \ @if test -s ./.tmp-create-diff; \
then \ then \
cat ./.tmp-create-diff; \ cat ./.tmp-create-diff; \
echo "NOTE: Don't forget to update db-migrate.txt!"; \ echo "NOTE: Don't forget to update db-migrate.txt!"; \
mv ./.tmp-db-create.sql ./database-create.sql; \ mv ./.tmp-db-create.sql ./database-create.sql; \
fi fi
@rm -f ./.tmp-create-diff @rm -f ./.tmp-create-diff ./.tmp-db-create.sql
@rm -f ./.tmp-db-create.sql
db-fill: db-fill:
@/usr/testbed/sbin/wap /usr/testbed/sbin/export_tables \ @/usr/testbed/sbin/wap /usr/testbed/sbin/export_tables \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment