From fd46db8b4baccc614dfcda7ac13b2c44f0efc3de Mon Sep 17 00:00:00 2001 From: teastep Date: Wed, 20 Jun 2007 23:00:48 +0000 Subject: [PATCH] Don't generate Ports.pm if $PREFIX git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6628 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall-perl/install.sh b/Shorewall-perl/install.sh index 5af6da51a..f0f502042 100755 --- a/Shorewall-perl/install.sh +++ b/Shorewall-perl/install.sh @@ -190,7 +190,7 @@ done # install_file buildports.pl ${PREFIX}/usr/share/shorewall-perl/buildports.pl 0555 -./buildports.pl > ${PREFIX}/usr/share/shorewall-perl/Shorewall/Ports.pm +[ -z "$PREFIX" ] && ./buildports.pl > /usr/share/shorewall-perl/Shorewall/Ports.pm echo $VERSION > ${PREFIX}/usr/share/shorewall-perl/version #