-
Notifications
You must be signed in to change notification settings - Fork 2
/
rebuild.sh
45 lines (35 loc) · 1.28 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
#!/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 ' ooooooooo '
echo ' o o '
echo ' o o '
echo ' o o '
echo ' o o '
echo ' o ooooo '
echo ''
echo '================='
echo ' VIH '
echo '================='
echo "This command can be used to rebuild the installation profile in place."
echo " [1] Rebuild profile in place in release mode"
echo " [2] Rebuild profile in place in development mode (with .git working-copy)"
echo " [3] Exit without rebuilding"
echo "Selection:"
read SELECTION
if [ $SELECTION = "1" ]; then
echo "Rebuilding VIH install profile..."
drush make --no-core --no-gitinfofile --contrib-destination=. drupal-org.make
elif [ $SELECTION = "2" ]; then
echo "Rebuilding VIH install profile as a working-copy..."
drush make --working-copy --no-core --no-gitinfofile --contrib-destination=. drupal-org.make
elif [ $SELECTION = "3" ]; then
echo "Exiting without rebuilding..."
else
echo "Invalid selection."
fi
else
echo 'Could not locate file "drupal-org.make"'
fi