From c28e401b5c6dada23d6f73dc615a0d8af4436a52 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 28 Nov 2008 22:42:38 +0100 Subject: Removed pkglist backwards-compatibility --- include/pkglist | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'include') diff --git a/include/pkglist b/include/pkglist index 5ae2db5..8724ed2 100755 --- a/include/pkglist +++ b/include/pkglist @@ -1,28 +1,12 @@ #!/usr/bin/env zsh -# Some backwards-compatibility foobar... -# XXX: Remove this as soon as everyone should have the new version -typeset -g -i newmode=0 -[[ -n $PDIR ]] && newmode=1 -(( newmode )) || cd $1 || exit 100 -(( newmode )) && cd /${(j:/:)${(s:/:)0}[1,-4]} - -(( newmode )) || rm -f .list +cd /${(j:/:)${(s:/:)0}[1,-4]} for i in *(/,@); { if [[ -d $i/.git ]] { - if (( newmode )) { - echo -n "$i git " - echo ${$(git --git-dir=$i/.git log -n 1)[2]} - } else { - echo -n "$i git " >> .list - echo ${$(git --git-dir=$i/.git log -n 1)[2]} >> .list - } + echo -n "$i git " + echo ${$(git --git-dir=$i/.git log -n 1)[2]} } else { echo "$i: Unsupported or no repository" >&2 } } - -if (( newmode == 0 )) { - echo "Running pkglist manually or via cron is no longer neccessary and therefore depracated" >&2 -} -- cgit v1.2.3