Project

General

Profile

Revision 653aeb8e

Added by Julien Enselme about 9 years ago

Various correction in scripts.

  • All source imports use absolute path.
  • Add comments.
  • Create 2 new variables: d7_dir_all_modules and d7_dir_all_themes in scripts-config.sh.
  • Make scripts respect code style.

View differences:

bin/d7-reset-variables.sh
1 1
#!/bin/sh
2 2

  
3
. /home/assos/bin/scripts-config.sh
3
usage() {
4
    echo "ARGS: [site_name]"
5
}
4 6

  
5
# ARGS: [site_name]
7
. /home/assos/bin/scripts-config.sh
8
. /home/assos/bin/print-help-if-required.sh
6 9

  
7 10
if [ -n "$1" ] ; then
8
    param="$1" . scripts-config-site.sh
11
    param="$1" /home/assos/bin/scripts-config-site.sh
9 12
    # default is an exception to the rule
13
    # find returns the name of the as the absolute path, hence the use of grep
14
    # and not =
10 15
    if echo "$1" | grep -q default ; then
11
	    cd "${d7_dir_sites}/default"
16
	cd "${d7_dir_sites}/default"
12 17
    else
13 18
	cd "${d7_site_dir}"
14 19
    fi

Also available in: Unified diff