Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Puppet_Master (096a57271d27fb4e9d7db925af969498a8373b91)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Puppet_Master <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Puppet_Master (096a57271d27fb4e9d7db925af969498a8373b91)
  • Date: Wed, 3 Mar 2010 07:57:36 -0600

GIT changes to master grimoire by Puppet_Master <puppetmaster AT sourcemage.org>:

e-17/enna/DOWNLOAD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 45 insertions(+)

New commits:
commit 096a57271d27fb4e9d7db925af969498a8373b91
Author: Philippe Caseiro <puppetmaster AT sourcemage.org>
Commit: Puppet_Master <puppetmaster AT sourcemage.org>

enna : Adding DOWNLOAD file for mercurial support

diff --git a/e-17/enna/DOWNLOAD b/e-17/enna/DOWNLOAD
new file mode 100755
index 0000000..2141846
--- /dev/null
+++ b/e-17/enna/DOWNLOAD
@@ -0,0 +1,45 @@
+#once the hg download handler hits stable sorcery this DOWNLOAD script would
+#only need to be removed, SOURCE_URL is compatible with the planned hg
handler
+
+function my_url_hg_http_crack() {
+
+ URL=$(url_strip_prefix "$1" hg_http)
+ HG_ROOT=$(echo $URL | sed "s#\(^[^/]*[^:]*\):.*#\1#")
+ HG_ROOT=http://$HG_ROOT
+ local HG_DIRECTORY_TAG=$(echo $URL | sed "s#^[^/]*[^:]*\(.*\)#\1#")
+ HG_DIRECTORY=$(echo $HG_DIRECTORY_TAG | cut -d : -f2)
+ local HG_TAGNAME=$(echo $HG_DIRECTORY_TAG | cut -d : -f3)
+ HG_TAG=${HG_TAGNAME:=default}
+
+}
+
+if [[ "${VERSION}" != "mercurial" && "${VERSION}" != "$(date +%Y%m%d)" ]];
then
+ default_download &&
+ return $?
+fi &&
+
+message "${MESSAGE_COLOR}Starting Mercurial checkout of" \
+ "${FILE_COLOR}${SOURCE}${MESSAGE_COLOR}...${DEFAULT_COLOR}" &&
+my_url_hg_http_crack $SOURCE_URL &&
+if [[ -f $SOURCE_CACHE/$SOURCE ]]; then
+ message "${MESSAGE_COLOR}Previous source found
unpacking...${DEFAULT_COLOR}" &&
+ tar -jxf $SOURCE_CACHE/$SOURCE &&
+ message "${MESSAGE_COLOR}Running hg pull...${DEFAULT_COLOR}" &&
+ ( cd $HG_DIRECTORY &&
+ echo hg pull $HG_ROOT &&
+ hg pull $HG_ROOT &&
+ echo hg update $HG_TAG &&
+ hg update $HG_TAG )
+else
+ message "${MESSAGE_COLOR}Running hg clone...${DEFAULT_COLOR}"
+ echo hg clone $HG_ROOT $HG_DIRECTORY
+ hg clone $HG_ROOT $HG_DIRECTORY &&
+ ( cd $HG_DIRECTORY &&
+ echo hg update $HG_TAG &&
+ hg update $HG_TAG )
+fi &&
+message "${MESSAGE_COLOR}Generating tarball...${DEFAULT_COLOR}" &&
+tar -jcf $SOURCE $HG_DIRECTORY &&
+cp $SOURCE $SOURCE_CACHE/$SOURCE &&
+rm $SOURCE &&
+message "${MESSAGE_COLOR}Mercurial checkout complete...${DEFAULT_COLOR}"



  • [SM-Commit] GIT changes to master grimoire by Puppet_Master (096a57271d27fb4e9d7db925af969498a8373b91), Puppet_Master, 03/03/2010

Archive powered by MHonArc 2.6.24.

Top of Page