[SM-Commit] GIT changes to master grimoire by Ismael Luceno (1ba2b60533570339101e4aa8c81551973177c8e4)

Ismael Luceno scm at sourcemage.org
Wed Jun 1 00:07:15 EDT 2011


GIT changes to master grimoire by Ismael Luceno <ismael at sourcemage.org>:

 libs/libnfo/DOWNLOAD      |   43 +++----------------------------------------
 libs/libnfo/HISTORY       |    3 +++
 libs/libplayer/DOWNLOAD   |   43 +++----------------------------------------
 libs/libplayer/HISTORY    |    3 +++
 libs/libsvdrp/DOWNLOAD    |   43 +++----------------------------------------
 libs/libsvdrp/HISTORY     |    3 +++
 libs/libvalhalla/DOWNLOAD |   43 +++----------------------------------------
 libs/libvalhalla/HISTORY  |    3 +++
 8 files changed, 24 insertions(+), 160 deletions(-)

New commits:
commit 1ba2b60533570339101e4aa8c81551973177c8e4
Author: Ismael Luceno <ismael at sourcemage.org>
Commit: Ismael Luceno <ismael at sourcemage.org>

    libvalhalla: use hg_download

commit 9c2398673e6f3e783a8c61b6e8f3d6efc4219774
Author: Ismael Luceno <ismael at sourcemage.org>
Commit: Ismael Luceno <ismael at sourcemage.org>

    libsvdrp: use hg_download

commit 01d86f5e6b67fb7e056375e6b5c5c3b20479d90e
Author: Ismael Luceno <ismael at sourcemage.org>
Commit: Ismael Luceno <ismael at sourcemage.org>

    libplayer: use hg_download

commit 7b6f873c7feac1d7fba2e49f2877eae527579424
Author: Ismael Luceno <ismael at sourcemage.org>
Commit: Ismael Luceno <ismael at sourcemage.org>

    libnfo: use hg_download

diff --git a/libs/libnfo/DOWNLOAD b/libs/libnfo/DOWNLOAD
index 2141846..24a9860 100755
--- a/libs/libnfo/DOWNLOAD
+++ b/libs/libnfo/DOWNLOAD
@@ -1,45 +1,8 @@
 #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 )
+  default_download
 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}"
+  hg_download
+fi
diff --git a/libs/libnfo/HISTORY b/libs/libnfo/HISTORY
index 0cbb055..0abead6 100644
--- a/libs/libnfo/HISTORY
+++ b/libs/libnfo/HISTORY
@@ -1,3 +1,6 @@
+2011-06-01 Ismael Luceno <ismael at sourcemage.org>
+        * DOWNLOAD: use hg_download
+
 2010-03-03 Philippe "Puppet_Master" Caseiro <puppetmaster at sourcemage.org>
         * DOWNLOAD: fixing version test 'scm -> mercurial'
 
diff --git a/libs/libplayer/DOWNLOAD b/libs/libplayer/DOWNLOAD
index 2141846..24a9860 100755
--- a/libs/libplayer/DOWNLOAD
+++ b/libs/libplayer/DOWNLOAD
@@ -1,45 +1,8 @@
 #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 )
+  default_download
 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}"
+  hg_download
+fi
diff --git a/libs/libplayer/HISTORY b/libs/libplayer/HISTORY
index 37e2b1d..fb696ab 100644
--- a/libs/libplayer/HISTORY
+++ b/libs/libplayer/HISTORY
@@ -1,3 +1,6 @@
+2011-06-01 Ismael Luceno <ismael at sourcemage.org>
+        * DOWNLOAD: use hg_download
+	
 2010-03-03 Philippe "Puppet_Master" Caseiro <puppetmaster at sourcemage.org>
 	* CONFIGURE : file added, for player selection
         * DEPENDS : adding support for player selection, vlc dep added
diff --git a/libs/libsvdrp/DOWNLOAD b/libs/libsvdrp/DOWNLOAD
index c6c5535..3e723f3 100755
--- a/libs/libsvdrp/DOWNLOAD
+++ b/libs/libsvdrp/DOWNLOAD
@@ -1,45 +1,8 @@
 #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}" != "scm" && "${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 )
+  default_download
 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}"
+  hg_download
+fi
diff --git a/libs/libsvdrp/HISTORY b/libs/libsvdrp/HISTORY
index 2f61638..6e3cc53 100644
--- a/libs/libsvdrp/HISTORY
+++ b/libs/libsvdrp/HISTORY
@@ -1,2 +1,5 @@
+2011-06-01 Ismael Luceno <ismael at sourcemage.org>
+        * DOWNLOAD: use hg_download
+
 2009-12-08 Philippe "Puppet_Master" Caseiro <puppetmaster at sourcemage.org>
 	* DEPENDS, DETAILS, DOWNLOAD, PREPARE, PRE_BUIL: Created 
diff --git a/libs/libvalhalla/DOWNLOAD b/libs/libvalhalla/DOWNLOAD
index 2141846..24a9860 100755
--- a/libs/libvalhalla/DOWNLOAD
+++ b/libs/libvalhalla/DOWNLOAD
@@ -1,45 +1,8 @@
 #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 )
+  default_download
 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}"
+  hg_download
+fi
diff --git a/libs/libvalhalla/HISTORY b/libs/libvalhalla/HISTORY
index dbfa5fe..d7dc593 100644
--- a/libs/libvalhalla/HISTORY
+++ b/libs/libvalhalla/HISTORY
@@ -1,3 +1,6 @@
+2011-06-01 Ismael Luceno <ismael at sourcemage.org>
+        * DOWNLOAD: use hg_download
+
 2010-03-03 Philippe "Puppet_Master" Caseiro <puppetmaster at sourcemage.org>
         * DOWNLOAD: fixing version test 'scm -> mercurial'
 


More information about the SM-Commit mailing list