]> gitweb.fluxo.info Git - templater.git/commitdiff
Drupal 8: minor Makefile changes
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 27 Oct 2017 21:40:20 +0000 (19:40 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 27 Oct 2017 21:40:20 +0000 (19:40 -0200)
share/drupal8/Makefile
templater

index 3ba982faa5b6980de171813ca6ce2a0da996421f..dec93d39283f0b95e9813eab352232faf221dbe7 100644 (file)
@@ -118,6 +118,8 @@ reinitdb: destroydb initdb
 clean:
        vagrant halt
        vagrant destroy -f
+       kvmx stop
+       kvmx destroy
        rm -rf vendor/drupal*
 
 # Export configuration
@@ -142,7 +144,7 @@ upgrade-modules:
 
 # Upgrade drupal
 upgrade-drupal:
-       BASE=/vagrant/vendor drupal upgrade $(OLD) $(NEW)
+       BASE=$(DESTDIR) drupal upgrade $(OLD) $(NEW)
 
 # Configure update hook on remote host
 post_receive:
index 402af36e848853b3822701745e1baca858b41444..66413fc67fc4289ed0068da2e8a9acc9669a35d7 100755 (executable)
--- a/templater
+++ b/templater
@@ -343,6 +343,36 @@ function templater_drupal8 {
   fi
 }
 
+# GPLv3 License
+function templater_gpl {
+  if [ ! -e "LICENSE" ]; then
+    __templater_echo "Setting up GPLv3 license..."
+    cp $DIRNAME/share/gpl/LICENSE .
+  else
+    __templater_echo "LICENSE already set"
+  fi
+}
+
+# AGPLv3 License
+function templater_agpl {
+  true
+}
+
+# MIT License
+function templater_mit {
+  true
+}
+
+# Apache License
+function templater_apache {
+  true
+}
+
+# BSD License
+function templater_bsd {
+  true
+}
+
 # Syntax check
 if [ -z "$PROJECT" ]; then
   echo "$BASENAME: create a new project folder and/or setup helper utilities"