Revision 1098
Added by Aaron Marcuse-Kubitza about 13 years ago
input.Makefile | ||
---|---|---|
248 | 248 |
dbExists = $(shell echo "SHOW DATABASES LIKE '$(db)';"|$(mysqlAsRoot)) |
249 | 249 |
|
250 | 250 |
define createDb |
251 |
echo "CREATE DATABASE IF NOT EXISTS $(db) DEFAULT CHARACTER SET latin1;"\ |
|
252 |
|$(mysqlAsRoot) |
|
251 |
echo "CREATE DATABASE $(db) DEFAULT CHARACTER SET latin1;"|$(mysqlAsRoot) |
|
253 | 252 |
-$(mysqlAsRoot) --database=$(db) <$< |
254 | 253 |
endef |
255 | 254 |
# ignore errors in db import so that GRANT will still be run |
Also available in: Unified diff
input.Makefile: input DB creation: Removed "IF NOT EXISTS" because that check is handled by $(dbExists)