Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=6949920386fadf545507f8a0d1cc35cb6a8139d0

commit 6949920386fadf545507f8a0d1cc35cb6a8139d0
Author: Michel Hermier <herm...@frugalware.org>
Date:   Sat Dec 25 11:26:40 2010 +0100

sourceforge.sh

* Make up2date modern (using Fwcat).
* make source in one line (making miltiline to win 2 char is a non-sence)

diff --git a/source/include/sourceforge.sh b/source/include/sourceforge.sh
index 5905678..44a66d6 100644
--- a/source/include/sourceforge.sh
+++ b/source/include/sourceforge.sh
@@ -24,7 +24,6 @@
# options=('scriptlet')
# groups=('xapps-extra')
# archs=('i686' 'x86_64')
-# up2date="lynx -dump '$purl'|grep -m1 '$pkgname-'|sed 's/.*-\(.*\).tar.gz 
.*/\1/'"
# sha1sums=('9023c205cb1623e749bd5ca7baf721c55f36f279')
# --------------------------------------------------
#
@@ -87,7 +86,7 @@ fi
# * source()
###
_F_sourceforge_url="http://sourceforge.net/projects/$_F_sourceforge_dirname";
-_F_sourceforge_id="$(lynx -dump $_F_sourceforge_url/ | grep --color project-id 
| sed -e "s|.*project-id/||;s|/.*||")"
+_F_sourceforge_id="$(Fwcat $_F_sourceforge_url/ | grep --color project-id | 
sed -e "s|.*project-id/||;s|/.*||")"
_F_sourceforge_rss_url="http://sourceforge.net/api/file/index/project-id/$_F_sourceforge_id/mtime/desc/limit/20/rss";
if [ -z "$url" ]; then
url="$_F_sourceforge_url"
@@ -101,8 +100,6 @@ up2date="lynx -dump '$_F_sourceforge_rss_url' | \
Fsort | tac | \
head -n 1"

-source=(
-       
http://${_F_sourceforge_mirror}.sourceforge.net/${_F_sourceforge_dirname}/"${_F_sourceforge_name}"${_F_sourceforge_sep}${_F_sourceforge_pkgver}${_F_sourceforge_ext}
-)
+source=("http://${_F_sourceforge_mirror}.sourceforge.net/${_F_sourceforge_dirname}/${_F_sourceforge_name}${_F_sourceforge_sep}${_F_sourceforge_pkgver}${_F_sourceforge_ext}";)

_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to