aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-04-03 13:47:17 -0300
committerSilvio Rhatto <rhatto@riseup.net>2019-04-03 13:47:17 -0300
commit7361147c3694b61813919abcba3051866b5298ad (patch)
tree192c8fed0d2a56262ec1b3a3287344076de8c017
parenta8b981dafb4d9347a286334da77cc7ed55322bec (diff)
downloadtemplater-7361147c3694b61813919abcba3051866b5298ad.tar.gz
templater-7361147c3694b61813919abcba3051866b5298ad.tar.bz2
Drupal 7/8: Makefile: dumpdb: clear the cache to ensure a small package
-rw-r--r--share/templater/drupal7/files/Makefile.drupal74
-rw-r--r--share/templater/drupal8/files/Makefile.drupal84
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