use a default in case COWPATH is not set

This commit is contained in:
sthen 2022-11-30 11:45:33 +00:00
parent ffe7d5fc1b
commit 8cecaa7732
3 changed files with 25 additions and 6 deletions

View File

@ -4,12 +4,7 @@ DISTNAME= Acme-Cow-0.2
MODULES= cpan
PKGNAME= cowsay-0.2
EPOCH= 0
#GH_ACCOUNT= tnalpgge
#GH_PROJECT= rank-amateur-cowsay
#GH_COMMIT= d66b866cf136502054e081b8714b09f7e43cd39f
#DISTNAME= cowsay-3.04
REVISION= 0
CATEGORIES= games

View File

@ -0,0 +1,12 @@
Index: cowsay
--- cowsay.orig
+++ cowsay
@@ -16,7 +16,7 @@ use Getopt::Std;
my $VERSION = "4.0";
my $progname = basename($0);
-my $cowpath = $ENV{'COWPATH'} || ".";
+my $cowpath = $ENV{'COWPATH'} || "/usr/local/share/cows";
## One of these days, we'll get it ported to Windows. Yeah, right.

View File

@ -0,0 +1,12 @@
Index: cowthink
--- cowthink.orig
+++ cowthink
@@ -16,7 +16,7 @@ use Getopt::Std;
my $VERSION = "4.0";
my $progname = basename($0);
-my $cowpath = $ENV{'COWPATH'} || ".";
+my $cowpath = $ENV{'COWPATH'} || "/usr/local/share/cows";
## One of these days, we'll get it ported to Windows. Yeah, right.