-
Notifications
You must be signed in to change notification settings - Fork 6
/
rebuild.sh
35 lines (26 loc) · 1.31 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
#!/bin/sh
# Script to rebuild the Panopoly installation profile
# This command expects to be run within the Panopoly profile.
# To use this command you must have `drush make` and `git` installed.
if [ -f drupal-org.make ]; then
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 HotSauce! install profile in release mode..."
drush make --no-core --no-gitinfofile --contrib-destination=. drupal-org-release.make
elif [ $SELECTION = "2" ]; then
echo "Building HotSauce! install in development mode (latest dev code)..."
drush make --no-core --no-gitinfofile --contrib-destination=. drupal-org.make
elif [ $SELECTION = "3" ]; then
echo "Building HotSauce! install profilein 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