-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·58 lines (43 loc) · 1.9 KB
/
build.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
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
# These next few lines are defaults modify these to your local environment
# to avoid having to re-type at each rebuild.
DEFWEBROOT=/tmp
DEFWEBDIR=hpps
DEFGITUSER=git
DEFGITBRANCH=master
DEFGITURI=github.com:FunnyMonkey/hpps.git
MAKEFILE=hpps_install.make
GITCLONEDIR=hpps_install
echo "This build script requires drush and git"
echo "http://drupal.org/project/drush"
# No edits below here should be necessary
read -p "BUILDDIR [${DEFWEBROOT}]: " hppswebroot
hppswebroot=${hppswebroot:-$DEFWEBROOT}
read -p "BUILDNAME [${DEFWEBDIR}]: " hppswebdir
hppswebdir=${hppswebdir:-$DEFWEBDIR}
#read -p "GITUSER [${DEFGITUSER}]: " hppsgituser
hppsgituser=${hppsgituser:-$DEFGITUSER}
#read -p "GITURI [${DEFGITURI}]: " hppsgituri
hppsgituri=${hppsgituri:-$DEFGITURI}
#read -p "GIT BRANCH [${DEFGITBRANCH}]: " kf4hgitbranch
hppsgitbranch=${hppsgitbranch:-$DEFGITBRANCH}
echo "Downloading drupal core"
cd "${hppswebroot}"
drush -y dl --drupal-project-rename="${hppswebdir}" drupal
cd "${hppswebroot}/${hppswebdir}/profiles"
echo "Cloning julio repository"
git clone --recursive --branch 7.x-1.x http://git.drupal.org/project/julio.git
cd julio
echo "building julio..."
drush -y make --no-core --contrib-destination=. drupal-org.make
cd "${hppswebroot}/${hppswebdir}/sites/all/modules"
echo "cloning hpps..."
git clone [email protected]:FunnyMonkey/fmhpps.git hpps
echo "Downloading hpps modules"
drush -y make --no-core --contrib-destination=. hpps/hpps.make
echo "Applying patches"
cd "${hppswebroot}/${hppswebdir}/profiles/julio"
git apply "${hppswebroot}/${hppswebdir}/sites/all/modules/hpps/patches/julio-feature-set.patch"
git apply "${hppswebroot}/${hppswebdir}/sites/all/modules/hpps/patches/theme.patch"
cp "${hppswebroot}/${hppswebdir}/sites/all/modules/hpps/patches/clipboard.png" "${hppswebroot}/${hppswebdir}/profiles/julio/feature_set_icons"
echo "If you saw no errors your site is built at ${hppswebroot}/${hppswebdir}"