summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'versioncp/upstscripts/sourceforge')
-rwxr-xr-xversioncp/upstscripts/sourceforge16
1 files changed, 0 insertions, 16 deletions
diff --git a/versioncp/upstscripts/sourceforge b/versioncp/upstscripts/sourceforge
deleted file mode 100755
index 2145464..0000000
--- a/versioncp/upstscripts/sourceforge
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/bash
-
-# Strip cat, we only need the pkg name
-sfpkg="`echo ${1} | sed -e "s|^.*/||g"`"
-
-# Take care of outputting the version number
-pwd="`pwd`"
-if ! test -d "${pwd}/${sfpkg}-tmp" ; then
- mkdir "${pwd}/${sfpkg}-tmp"
-fi
-cd "${pwd}/${sfpkg}-tmp"
-wget --quiet --tries=1 --timeout=3 "http://sourceforge.net/projects/${sfpkg}/" -O indexfile
-projnum=`grep -i 'project/showfiles.php?group_id.*Files' indexfile | sed -e "s|^<li><a href.*group_id=||g" | sed -e "s|\" >.*||g"`
-wget --quiet --tries=1 --timeout=3 "http://sourceforge.net/export/rss2_projfiles.php?group_id=${projnum}" -O rssfeed
-grep -i "<title>${sfpkg} " rssfeed | head -n 1 | sed -e "s|^.*<title>${sfpkg} ||gI" | sed -e "s| released .*</title>.*||g" | sed -e "s|^[A-Za-z _-]*||g" | sed -e "s|-[cCe-oE-OqQs-zS-Z]\{1\}.*||g"
-rm -Rf "${pwd}/${sfpkg}-tmp"