Created
June 24, 2010 05:09
-
-
Save KyleAMathews/451006 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Build a complete tar.gz archive of Drupal + Open Atrium | |
# | |
# This command expects to be run withing a CVS checkout of the Open Atrium | |
# project. It can only be run without arguments. It will generate a output file | |
# of the format openatrium-TAG.tar.gz in the current directory. | |
# | |
MAKE=$(cat <<EOF | |
core = "6.x"\n | |
projects[drupal][version] = "6.17"\n | |
projects[openatrium][type] = "profile"\n | |
projects[openatrium][download][type] = "cvs"\n | |
projects[openatrium][download][module] = "contributions/profiles/openatrium"\n | |
projects[openatrium][download][revision] = | |
EOF | |
) | |
if [ -f openatrium.make ]; then | |
TAG=`cvs status openatrium.make | grep "Sticky Tag:" | awk '{print $3}'` | |
if [ -n $TAG ]; then | |
if [ $TAG = "(none)" ]; then | |
TAG="HEAD" | |
fi | |
MAKE="$MAKE $TAG\n" | |
NAME=`echo "openatrium-$TAG" | tr '[:upper:]' '[:lower:]'` | |
echo $MAKE | drush make --yes --tar - $NAME | |
else | |
echo 'Could not determine CVS tag. Is openatium.make a CVS checkout?' | |
fi | |
else | |
echo 'Could not locate file "openatrium.make' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment