Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/contrib/pacsearch.in
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-12-06 22:29:32 +0100
committerDan McGee <dan@archlinux.org>2011-12-07 09:59:30 -0600
commit1038e669649dae98c1cf9c354e680c62cf25638c (patch)
tree8088a11caace799fdb96040d39fe56abf3e5f55e /contrib/pacsearch.in
parent48188fbeee8bc39977bc2a0200dc5fb538db9ff1 (diff)
contrib/*: Hardcode program names
Add a read-only variable "$myname" to every contrib script and hardcode program names instead of relying on "$0". The variable name "$myname" was chosen because it is already used in pacman and because we use "$myver" to specify the program version in the official scripts. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'contrib/pacsearch.in')
-rwxr-xr-xcontrib/pacsearch.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/pacsearch.in b/contrib/pacsearch.in
index db9d6ad1..794110eb 100755
--- a/contrib/pacsearch.in
+++ b/contrib/pacsearch.in
@@ -24,13 +24,13 @@
use strict;
use warnings;
-my $progname = "pacsearch";
+my $myname = 'pacsearch';
my $version = "2.0";
if ($#ARGV lt 0 || $ARGV[0] eq "--help" || $ARGV[0] eq "-h") {
- print "$progname - Add color and install information to a pacman -Ss search\n";
- print "Usage: $progname <pattern>\n";
- print "Example: $progname ^gnome\n";
+ print "$myname - Add color and install information to a pacman -Ss search\n";
+ print "Usage: $myname <pattern>\n";
+ print "Example: $myname ^gnome\n";
if ($#ARGV lt 0) {
exit 1;
}
@@ -38,7 +38,7 @@ if ($#ARGV lt 0 || $ARGV[0] eq "--help" || $ARGV[0] eq "-h") {
}
if ($ARGV[0] eq "--version" || $ARGV[0] eq "-v") {
- print "$progname version $version\n";
+ print "$myname version $version\n";
print "Copyright (C) 2006-2011 Dan McGee\n";
exit 0;
}