-
Notifications
You must be signed in to change notification settings - Fork 74
/
rebuild.sh
executable file
·46 lines (36 loc) · 1.62 KB
/
rebuild.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/sh
# Script to rebuild the WxT installation profile
# This command expects to be run within the WxT profile.
# To use this command you must have `drush make` and `git` installed.
if [ -f drupal-org.make ]; then
echo ' __ __ ___________'
echo '/ \ / \___ __\__ ___/'
echo '\ \/\/ /\ \/ / | | '
echo ' \ / > < | | '
echo ' \__/\ / /__/\_ \ |____| '
echo ' \/ \/ '
echo ''
echo '================='
echo ' WxT '
echo '================='
echo "\nThis command can be used to rebuild the installation profile in place.\n"
echo " [1] Rebuild profile in place in release mode (latest stable release)"
echo " [2] Rebuild profile in place in development mode (latest dev code)"
echo " [3] Rebuild profile in place in development mode (latest dev code with .git working-copy)\n"
echo "Selection: \c"
read SELECTION
if [ $SELECTION = "1" ]; then
echo "Building WxT install profile in release mode..."
drush make --no-core --no-gitinfofile --contrib-destination=. drupal-org-release.make
elif [ $SELECTION = "2" ]; then
echo "Building WxT install profile in development mode (latest dev code)..."
drush make --no-core --no-gitinfofile --contrib-destination=. drupal-org.make
elif [ $SELECTION = "3" ]; then
echo "Building WxT install profile in development mode (latest dev code with .git working-copy)"
drush make --working-copy --no-core --no-gitinfofile --contrib-destination=. drupal-org-dev.make
else
echo "Invalid selection."
fi
else
echo 'Could not locate file "drupal-org.make"'
fi