summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-21 17:59:33 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-21 17:59:33 +0200
commit68d235b48ddbdb6f507dd372f9fa85e041e31fe9 (patch)
tree0e8476563c8ab3320c59b5b5e7b494a12a4e09b2
parent70bc10b3776a324f9a79d70cae6376fe956d4a67 (diff)
removed removelinks which is now obsolete
-rwxr-xr-xbin/removelinks24
1 files changed, 0 insertions, 24 deletions
diff --git a/bin/removelinks b/bin/removelinks
deleted file mode 100755
index 87d5c5f..0000000
--- a/bin/removelinks
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/usr/bin/env perl
-use strict;
-use warnings;
-
-my $i;
-my $package = shift or die('not enough arguments');
-my $verbose = 1;
-my $home = $ENV{HOME} || '/home/derf';
-my @binaries;
-
-opendir(BIN, "$home/bin");
-@binaries = readdir(BIN);
-closedir(BIN);
-
-foreach(@binaries) {
- next if $_ eq '.';
- next if $_ eq '..';
- $_ = "$home/bin/$_";
- next unless (-l);
- if ((split(/\//, readlink))[2] eq $package) {
- unlink;
- print "Removed $_\n" if $verbose;
- }
-}