Skip to content

Instantly share code, notes, and snippets.

@suin
Created July 27, 2012 13:49
Show Gist options
  • Save suin/3188135 to your computer and use it in GitHub Desktop.
Save suin/3188135 to your computer and use it in GitHub Desktop.
#!/bin/bash
original_dir=$(pwd)
rm -rf /tmp/xoopsilex*
mkdir /tmp/xoopsilex || exit 1
cd /tmp/xoopsilex
git clone git://github.com/suin/xoopsilex-sample.git xoopsilex-sample-tmp
wget -O - https://github.com/xoopscube/legacy/tarball/r2_2_01_Beta_3 | tar xzf -
mkdir xoopsilex-sample || exit 1
mv xoopscube-legacy-*/* xoopsilex-sample/
rm -rf xoopscube-legacy-*
cp -r xoopsilex-sample-tmp/* xoopsilex-sample/
mv xoopsilex-sample-tmp/.git* xoopsilex-sample/
rm -rf xoopsilex-sample-tmp
cd xoopsilex-sample/xoops_trust_path
if [ $(which composer) ]
then
composer_exists=1
/usr/bin/php $(which composer) install
else
composer_exists=0
fi
cd $original_dir
mv /tmp/xoopsilex/xoopsilex-sample .
echo "Finished!"
if [ $composer_exists -eq 0 ]
then
echo "Next Step"
echo ""
echo " * Install composer"
echo " * Execute composer to install components at xoops_trust_path"
echo ""
echo " $ composer install"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment