From 7361147c3694b61813919abcba3051866b5298ad Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 3 Apr 2019 13:47:17 -0300 Subject: Drupal 7/8: Makefile: dumpdb: clear the cache to ensure a small package --- share/templater/drupal7/files/Makefile.drupal7 | 4 ++-- share/templater/drupal8/files/Makefile.drupal8 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/share/templater/drupal7/files/Makefile.drupal7 b/share/templater/drupal7/files/Makefile.drupal7 index 4430295..c8ad577 100644 --- a/share/templater/drupal7/files/Makefile.drupal7 +++ b/share/templater/drupal7/files/Makefile.drupal7 @@ -113,8 +113,8 @@ initdb: settings $(DRUSH) cc all $(DRUSH) updatedb -y -# Dump the database -dumpdb: settings +# Dump the database, clearing the cache to ensure a small package +dumpdb: settings cache mkdir -p sql/dumps rm -f sql/dumps/latest.sql.gz rm -f sql/dumps/$(DATE).sql.gz diff --git a/share/templater/drupal8/files/Makefile.drupal8 b/share/templater/drupal8/files/Makefile.drupal8 index fe53066..88c0852 100644 --- a/share/templater/drupal8/files/Makefile.drupal8 +++ b/share/templater/drupal8/files/Makefile.drupal8 @@ -126,8 +126,8 @@ initdb: settings test -s sql/dumps/latest.sql.gz && gzip -dc sql/dumps/latest.sql.gz | $(DRUSH) sql-cli || true test -s sql/dumps/latest.sql.gz && $(DRUSH) updatedb -y || true -# Dump the database -dumpdb: settings +# Dump the database, clearing the cache to ensure a small package +dumpdb: settings cache mkdir -p sql/dumps rm -f sql/dumps/latest.sql.gz rm -f sql/dumps/$(DATE).sql.gz -- cgit v1.2.3