Commit f90df53f authored by Mac Newbold's avatar Mac Newbold
Browse files

Ignore diff returning 1 when theres a difference.

parent bdcfdf70
......@@ -17,17 +17,16 @@
all: db-create db-fill sitevars
@rm -f ./.tmp-db-create.sql
@rm -f ./.tmp-db-create.sql ./.tmp-create-diff
@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; \
then \
cat ./.tmp-create-diff; \
echo "NOTE: Don't forget to update db-migrate.txt!"; \
mv ./.tmp-db-create.sql ./database-create.sql; \
@rm -f ./.tmp-create-diff
@rm -f ./.tmp-db-create.sql
@rm -f ./.tmp-create-diff ./.tmp-db-create.sql
@/usr/testbed/sbin/wap /usr/testbed/sbin/export_tables \
Supports Markdown
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