diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-11-28 22:42:38 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-11-28 22:42:38 +0100 |
commit | c28e401b5c6dada23d6f73dc615a0d8af4436a52 (patch) | |
tree | 8b9eba5b83131074d28a6fb9e99ca5cbbdb09278 /include | |
parent | 0ca9f3183173e3c371b06ec9e17f3a5b9f30a4fe (diff) |
Removed pkglist backwards-compatibility
Diffstat (limited to 'include')
-rwxr-xr-x | include/pkglist | 22 |
1 files changed, 3 insertions, 19 deletions
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 -} |