Created
June 11, 2012 09:05
-
-
Save vguerra/2909190 to your computer and use it in GitHub Desktop.
Cloning openacs core and xo-friend packages (all git).
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/bash | |
# This script fetches automatically all needed packages | |
# to have an xowf application up and running. | |
# It dependes on the git-subtree utility ( which one can find | |
# on the contrib section of the git release ). | |
# Victor Guerra (vguerra@gmail.com) | |
# 20120520 | |
checkout="openacs-github" | |
GIT_SUBTREE_CMD="git subtree" | |
GIT_CLONE_CMD="git clone" | |
DEFAULT_BRANCH="master" | |
function add_subtree () { | |
cmd="$GIT_SUBTREE_CMD add --prefix=packages/$1 --squash $2 $DEFAULT_BRANCH" | |
$cmd | |
} | |
rm -rf $checkout | |
# the core | |
$GIT_CLONE_CMD git://github.com/openacs/openacs-core.git $checkout | |
# xowf pkg (special case b/c of the source uri) | |
cd $checkout | |
add_subtree xowf git://alice.wu.ac.at/xowf | |
for pkg in xotcl-core xowiki file-storage categories acs-datetime general-comments oacs-dav rss-support acs-events | |
do | |
add_subtree "$pkg" "git://github.com/openacs/$pkg.git" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment