Skip to content

Instantly share code, notes, and snippets.

@signalpoint
Last active February 19, 2016 19:06
Show Gist options
  • Save signalpoint/e828b75914b8c956807b to your computer and use it in GitHub Desktop.
Save signalpoint/e828b75914b8c956807b to your computer and use it in GitHub Desktop.
drupalgap.org
7
8
.idea
node_modules
daux.io
api
docs
demo
#!/bin/bash
clear
echo "Zipping up local files..."
zip drupalgap-web.zip `find docs/ api/ -not -iwholename '*.git*' -print`
echo "clearing remote web server..."
ssh [email protected] 'bash -s' < remote-clear
echo "uploading zip file..."
scp drupalgap-web.zip [email protected]:~/www
echo "deleting local zip..."
rm drupalgap-web.zip
echo "unzipping remote files..."
ssh [email protected] 'bash -s' < remote-unzip
echo "done."
#!/bin/bash
# @WARNING If you get this error:
# cp: cannot overwrite non-directory ‘./docs’ with directory ‘../../7/mobile-application/docs’
# do this: rm /var/www/html/drupalgap.web/daux.io/docs
clear
# Generates api docs for DrupalGap 7 and 8.
echo "Removing old folders..."
if [ -d "docs" ]
then
rm -rf docs/
fi
if [ -d "api" ]
then
rm -rf api/
fi
echo "Making docs and api folders..."
mkdir docs api
echo "Generating DrupalGap 7 api... "
./node_modules/.bin/jsdoc -c 7/mobile-application/docs/jsdoc.json -r
mv out/ api/
cd api
echo "<?php header('Location: http://api.drupalgap.org/7'); ?>" >> index.php
mv out 7
cd ..
echo "Generating DrupalGap 8 api... "
./node_modules/.bin/jsdoc -c 8/app/docs/jsdoc.json -r
mv out/ api/
cd api
mv out 8
cd ..
echo "Generating DrupalGap 7 docs... "
cp -r daux.io docs/
mv docs/daux.io docs/7
cd docs
echo "<?php header('Location: http://docs.drupalgap.org/7'); ?>" >> index.php
cd 7
rm -rf .git/
cp -r ../../7/mobile-application/docs .
cd ../..
echo "Generating DrupalGap 8 docs... "
cp -r daux.io docs/
mv docs/daux.io docs/8
cd docs/8
rm -rf .git/
cp -r ../../8/app/docs .
cd ../..
echo "Done"
#!/bin/bash
clear
echo "Installing jsdoc..."
npm install jsdoc
echo "Cloning daux.io..."
git clone --branch development [email protected]:signalpoint/daux.io.git
#echo "Installing DrupalGap 7"
#mkdir 7
#cd 7
#git clone --branch 7.x-1.x [email protected]:signalpoint/DrupalGap.git
#git clone --branch development [email protected]:signalpoint/daux.io.git
#mv daux.io docs
#cd docs
#ln -s ../DrupalGap/docs docs
#
#cd ../..
#
#echo "Installing DrupalGap 8"
#mkdir 8
#cd 8
#git clone --branch 8.x-1.x [email protected]:signalpoint/DrupalGap.git
#git clone --branch development [email protected]:signalpoint/daux.io.git
#mv daux.io docs
#cd docs
#ln -s ../DrupalGap/docs docs
#!/bin/bash
clear
echo "==== DRUPALGAP WEB ===="
git push origin master
echo "==== DRUPALGAP 8 SDK ===="
cd 8/app
git push origin 8.x-1.x
cd ../..
echo "==== DRUPALGAP 8 MODULE ===="
cd 8/modules/contrib/drupalgap
git push origin 8.x-1.x
cd ../../../..
echo "==== DRUPALGAP 7 SDK ===="
cd 7/mobile-application
git push origin 7.x-1.x
cd ../..
echo "==== DRUPALGAP 7 MODULE ===="
cd 7/sites/all/modules/contrib/drupalgap
git push origin 7.x-1.x
cd ../../../../../..
echo "==== DAUX.IO ===="
cd daux.io
git push origin development
cd ..
#!/bin/bash
cd www
rm -rf api docs
#!/bin/bash
cd www
unzip drupalgap-web.zip
rm drupalgap-web.zip
#!/bin/bash
clear
echo "==== DRUPALGAP WEB ===="
git status
echo "==== DRUPALGAP DOCS ===="
cd daux.io
git status
cd ..
echo "==== DRUPALGAP 8 SDK ===="
cd 8/app
git status
echo "==== DRUPALGAP 8 MODULE ===="
cd ../modules/contrib/drupalgap
git status
echo "==== JDRUPAL 8 MODULE ===="
cd ../jdrupal
git status
cd ../../../..
echo "==== DRUPALGAP 7 ===="
cd 7/mobile-application
git status
cd ../..
#!/bin/bash
clear
echo "==== DRUPALGAP WEB ===="
git pull origin master
echo "==== DRUPALGAP 8 SDK ===="
cd 8/app
git pull origin 8.x-1.x
cd ../..
echo "==== DRUPALGAP 8 MODULE ===="
cd 8/modules/contrib/drupalgap
git pull origin 8.x-1.x
cd ../../../..
echo "==== DRUPALGAP 7 SDK ===="
cd 7/mobile-application
git pull origin 7.x-1.x
cd ../..
echo "==== DRUPALGAP 7 MODULE ===="
cd 7/sites/all/modules/contrib/drupalgap
git pull origin 7.x-1.x
cd ../../../../../..
echo "==== DAUX.IO ===="
cd daux.io
git pull origin development
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment