summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2014-11-01 15:33:38 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2014-11-01 15:33:38 +0100
commit303d3f2371941e80c68622c2ddc228339de176c8 (patch)
tree3915bbf9f04f9c2a7f475528dbb933ffd1d4cea6
parent6380ec04a77542670503407e6df243d069d59575 (diff)
downloadxtools-303d3f2371941e80c68622c2ddc228339de176c8.tar.gz
xtools-303d3f2371941e80c68622c2ddc228339de176c8.tar.xz
xtools-303d3f2371941e80c68622c2ddc228339de176c8.zip
xnuxnu: remove, superseded by ./xbps-src update-check.
-rwxr-xr-xxnuxnu75
1 files changed, 0 insertions, 75 deletions
diff --git a/xnuxnu b/xnuxnu
deleted file mode 100755
index 51f4538..0000000
--- a/xnuxnu
+++ /dev/null
@@ -1,75 +0,0 @@
-#!/bin/sh
-# xnuxnu PKG - upstream version checker for XBPS templates
-
-pkgname=$1
-orig_pkgname=$pkgname
-nl='
-'
-
-export LC_ALL=C
-
-void_version=$(./xbps-src show "$1" | sed -n '/^version/s/[^:]*:[\t]*//p')
-pkg=$1 bash -c '
-	. ./srcpkgs/"$pkg"/template >/dev/null
-	printf %s\\n "$update_site" "$update_pattern" "$update_ignore"' |
-{
-	IFS=$nl read -r update_site
-	IFS=$nl read -r update_pattern
-	IFS=$nl read -r update_ignore
-
-	if [ -n "$update_site" ]; then
-		printf %s\\n "$update_site"
-	else
-		./xbps-src show "$1" |
-			sed -n '/^distfiles:/{s/[^:]*:[\t]*//;s|/[^/]*$|/|p};
-				/^Upstream URL/s/[^:]*:[\t]*//p'
-	fi |
-	while IFS=$nl read -r url; do
-		rx="(?<!-)\b$pkgname[-_]?((src|source)[-_])?\K([^-/_\s]*?\d[^-/_\s]*?)(?=(?:[-_.](?:src|source|orig))?\.(?:[jt]ar|shar|t[bglx]z|tbz2|zip))\b"
-		case "$url" in
-		*sourceforge.net/sourceforge*)
-			url="http://sourceforge.net/projects/$pkgname/rss?limit=200";;
-		*code.google.com*|*googlecode*)
-			url="http://code.google.com/p/$pkgname/downloads/list";;
-		*launchpad.net*)
-			url="https://launchpad.net/$pkgname/+download";;
-		*cpan.*)
-			pkgname=${pkgname#perl-};;
-		*pypi.python.org*)
-			pkgname=${pkgname#python-};;
-		*github.com*)
-			githubname="$(echo $url | cut -d/ -f4,5)"
-			url="https://api.github.com/repos/$githubname/tags"
-			rx='"name":\s*"(v|'"$pkgname"'-)?\K[^\d]*([\d\.]+)(?=")';;
-		esac
-
-		#set -- $(grep "^${orig_pkgname} " xnuxnu-override)
-		url=${update_site:-$url}
-		rx=${update_pattern:-$rx}
-
-		echo "fetching $url" 1>&2
-		curl -A xnuxnu -Ls "$url" |
-			grep -Po -i "$rx" |
-		       	sort -Vu
-	done |
-	{ tee /dev/stderr | grep . || echo "NO VERSION found for $orig_pkgname" 1>&2; } |
-	while read version; do
-		consider=true
-		p="$update_ignore "
-		while [ -n "$p" ]; do
-			i=${p%% *}
-			p=${p#* }
-			case "$version" in
-			$i)
-				consider=false
-				echo "ignored"
-			esac
-		done
-		if $consider; then
-			xbps-uhelper cmpver "$orig_pkgname-${void_version}_1" "$orig_pkgname-${version}_1"
-			if [ $? = 255 ]; then
-				echo "NEWER VERSION $orig_pkgname-$version (have $orig_pkgname-${void_version})"
-			fi
-		fi
-	done
-}