Skip to content
Permalink
Browse files
BOA: Add Drupal Commerce - experimental platform in Octopus (Albert)
  • Loading branch information
omega8cc committed Mar 2, 2011
1 parent 0084df4 commit ebce834d154c02b8e237620dea7b579d778609b9
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 0 deletions.
@@ -301,6 +301,7 @@ _OPENPUBLISH=2.3.441
_OPENSCHOLAR=2.0-beta10
_PROSEPOINT=0.37
_UBERCART=uberdrupal
_COMMERCE=7.x-1.x-dev

###---### Functions
#
@@ -362,6 +363,7 @@ do
sed -i "s/EDIT_MANAGINGNEWS/$_MANAGINGNEWS/g" $Files
sed -i "s/EDIT_OPENATRIUM/$_OPENATRIUM/g" $Files
sed -i "s/EDIT_NODESTREAM/$_NODESTREAM/g" $Files
sed -i "s/EDIT_COMMERCE/$_COMMERCE/g" $Files
sed -i "s/EDIT_COCOMORE/$_COCOMORE/g" $Files
sed -i "s/EDIT_COMMONS/$_COMMONS/g" $Files
sed -i "s/EDIT_INSTALLER_VERSION/$_INSTALLER_VERSION/g" $Files
@@ -38,6 +38,7 @@ _OPENSCHOLAR=EDIT_OPENSCHOLAR
_PROSEPOINT=EDIT_PROSEPOINT
_UBERCART=EDIT_UBERCART
_NODESTREAM=EDIT_NODESTREAM
_COMMERCE=EDIT_COMMERCE


###---### main config
@@ -760,6 +761,9 @@ if [ ! -d "/home/$_USERFTP/platforms/$_THIS_CORE" ] ; then
if [ -d "$_ROOT/distro/$_THIS_CORE/nodestream-$_NODESTREAM/sites" ] ; then
ln -s $_ROOT/distro/$_THIS_CORE/nodestream-$_NODESTREAM/sites /home/$_USERFTP/platforms/$_THIS_CORE/nodestream
fi
if [ -d "$_ROOT/distro/$_THIS_CORE/commerce-$_COMMERCE/sites" ] ; then
ln -s $_ROOT/distro/$_THIS_CORE/commerce-$_COMMERCE/sites /home/$_USERFTP/platforms/$_THIS_CORE/commerce
fi
if [ -d "$_ROOT/distro/$_THIS_CORE/drupal_commons-$_COMMONS/sites" ] ; then
ln -s $_ROOT/distro/$_THIS_CORE/drupal_commons-$_COMMONS/sites /home/$_USERFTP/platforms/$_THIS_CORE/commons
fi
@@ -38,6 +38,7 @@ _OPENSCHOLAR=EDIT_OPENSCHOLAR
_PROSEPOINT=EDIT_PROSEPOINT
_UBERCART=EDIT_UBERCART
_NODESTREAM=EDIT_NODESTREAM
_COMMERCE=EDIT_COMMERCE


###---### main config
@@ -38,6 +38,7 @@ _OPENSCHOLAR=EDIT_OPENSCHOLAR
_PROSEPOINT=EDIT_PROSEPOINT
_UBERCART=EDIT_UBERCART
_NODESTREAM=EDIT_NODESTREAM
_COMMERCE=EDIT_COMMERCE


###---### main config
@@ -256,6 +257,7 @@ _F_DRUPAL5="Drupal $_DRUPAL5 P.$_THIS_CORE"
_F_DRUPAL6="Drupal 6.20 P.$_THIS_CORE"
_F_DRUPAL7="Drupal 7.0 P.$_THIS_CORE"
_F_COCOMORE="Cocomore Drupal $_COCOMORE P.$_THIS_CORE"
_F_COMMERCE="Commerce $_COMMERCE P.$_THIS_CORE"
_F_COMMONS="Drupal Commons $_COMMONS P.$_THIS_CORE"
_F_FSERVER="Feature Server P.$_THIS_CORE"
_F_MANAGINGNEWS="MNews $_MANAGINGNEWS P.$_THIS_CORE"
@@ -631,6 +633,39 @@ else
fi


###---### Commerce 7.x Dev Make
#
echo " "
if prompt_yes_no "$_F_COMMERCE - http://drupalcommerce.org" ; then
true
msg "STATUS: $_F_COMMERCE install in progress, please wait..."
mrun "sleep 2"
_CORE_DISTRO="$_CORE/commerce-$_COMMERCE"
if [ ! -d "$_CORE_DISTRO" ] ; then
cd $_CORE
cp -af /opt/tmp/$_BOA_REPO_NAME/aegir/makefiles/commercedev.make ./
$_ROOT/tools/drush/drush make commercedev.make commerce-$_COMMERCE &> /dev/null
rm -f commercedev.make
cd $_CORE/commerce-$_COMMERCE
rm -f $_CORE/commerce-$_COMMERCE/*.txt
ln -s $_CORE/o_contrib_seven modules/o_contrib_seven
rm -f -r $_CORE/commerce-$_COMMERCE/profiles/minimal
rm -f -r $_CORE/commerce-$_COMMERCE/profiles/standard
rm -f -r $_CORE/commerce-$_COMMERCE/profiles/testing
create_dirs
fi
mkdir -p $_ROOT/distro/$_THIS_CORE/commerce-$_COMMERCE
cd $_ROOT/distro/$_THIS_CORE/commerce-$_COMMERCE
create_symlinks
create_d7_symlinks
msg "STATUS: $_F_COMMERCE installation completed"
mrun "sleep 2"
else
msg "STATUS: $_F_COMMERCE installation skipped"
mrun "sleep 1"
fi


###---### Cocomore Drupal
#
if [ "$_PLATFORMS_ALL" = "YES" ] ; then
@@ -1139,6 +1174,12 @@ if [ -d "$_ROOT/distro/$_THIS_CORE/nodestream-$_NODESTREAM" ] ; then
mrun "sleep 5"
fi
fi
if [ -d "$_ROOT/distro/$_THIS_CORE/commerce-$_COMMERCE" ] ; then
if [ ! -e "$_ROOT/distro/$_THIS_CORE/commerce-$_COMMERCE/drushrc.php" ] ; then
$DRUSHC php-script make_platform "$_F_COMMERCE" commerce $_ROOT/distro/$_THIS_CORE/commerce-$_COMMERCE &> /dev/null
mrun "sleep 5"
fi
fi
if [ -d "$_ROOT/distro/$_THIS_CORE/openpublish-$_OPENPUBLISH" ] ; then
if [ ! -e "$_ROOT/distro/$_THIS_CORE/openpublish-$_OPENPUBLISH/drushrc.php" ] ; then
$DRUSHC php-script make_platform "$_F_OPENPUBLISH" openpublish $_ROOT/distro/$_THIS_CORE/openpublish-$_OPENPUBLISH &> /dev/null
@@ -0,0 +1,12 @@
; Commerce 7.x dev master makefile
;

api = 2
core = 7.x

projects[drupal][type] = core

projects[commercedev][type] = "profile"
projects[commercedev][download][type] = "git"
projects[commercedev][download][url] = "git://github.com/omega8cc/commercedev.git"
projects[commercedev][download][branch] = "master"

0 comments on commit ebce834

Please sign in to comment.