Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Rebuilds installed DKAN distribution with fresh make files.

View distro.pull.sh
1 2 3 4 5 6 7 8 9
#!/bin/bash
GITURL="http://git.drupal.org/project/dkan.git"
BRANCH="7.x-1.x"
PREFIX="projects/dkan"
echo "Pulling in latest updates on branch $BRANCH from remote $GITURL."
 
# Change to git root directory.
cd "$(git rev-parse --show-toplevel)"
git subtree pull --squash --prefix=$PREFIX $GITURL $BRANCH
View distro.pull.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
#!/bin/bash
 
# Pull down latest copy of DKAN.
./distro.pull.sh
 
GIT_ROOT=$(git rev-parse --show-toplevel)
cd $GIT_ROOT
 
echo "Removing docroot"
rm -rf docroot
 
echo "Building DKAN profile"
drush make -y scripts/build-dkan-profile.make docroot --no-gitinfofile
 
# Remove .gitignore files that are undesired.
rm docroot/profiles/dkan/.gitignore
rm docroot/profiles/dkan/libraries/Leaflet/.gitignore
 
echo "Symlinking sites directory to docroot/sites"
cd docroot
rm -rf sites
ln -s ../sites
echo "Symlinking .htaccess docroot/.htaccess"
rm .htaccess
ln -s ../.htaccess
echo "Symlinking robots.txt to docroot/robots.txt"
rm robots.txt
ln -s ../robots.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.