From 9e247978726b2bc95a2beccc7c9cc302e03d75d0 Mon Sep 17 00:00:00 2001 From: Rajab Natshah <rajabn@gmail.com> Date: Mon, 24 Jul 2017 12:28:48 +0300 Subject: [PATCH] Issue #2894493: Updated the script for Createing new Vartheme sub theme for a project.. --- scripts/create-new-vartheme.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/scripts/create-new-vartheme.sh b/scripts/create-new-vartheme.sh index 195ccbd8..09411966 100644 --- a/scripts/create-new-vartheme.sh +++ b/scripts/create-new-vartheme.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Change directory to the drupal docroot. +cd ../.. + # Create new vartheme subtheme. bootstrap_library_version="3.3.7"; @@ -174,3 +177,21 @@ else echo "---------------------------------------------------------------------------"; exit 1; fi + +################################################################################ +## +## Quick tip on how to use this script command file. +## +## Create new Vartheme sub theme for a project. +## +## composer create-new-vartheme "THEME_NAME" "ltr" "docroot/sites/default/themes/custom" +## +## For right to left themes. +## +## composer create-new-vartheme "THEME_NAME" "rtl" "docroot/sites/default/themes/custom" +## +## or to create a new theme in the docroot/themes/custom +## +## composer create-new-vartheme "THEME_NAME" "ltr" +## +################################################################################ -- GitLab