From 9bd3e5227bfc867d0eb9a101c57d0df56bc0b4f9 Mon Sep 17 00:00:00 2001 From: Elijah Perrault Date: Fri, 11 Mar 2011 19:55:17 -0700 Subject: [PATCH] Copy example.conf to DISTDIR/ for later wizard installs. --- install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install b/install index 0fc8832..28d782a 100755 --- a/install +++ b/install @@ -179,11 +179,15 @@ if ($upref) { my $moddir; if ($libbuild) { $moddir = "$libdir/modules" } else { $moddir = "$PREFIX/modules" } + my $distdir; + if ($libbuild) { $distdir = "$libdir/dist" } + else { $distdir = "$PREFIX/dist" } println "Installing....."; if (!-d "$PREFIX/bin") { make_path("$PREFIX/bin") } if (!-d $libdir) { make_path($libdir) } if (!-d $langdir) { make_path($langdir) } if (!-d $moddir) { make_path($moddir) } + if (!-d $distdir) { make_path($distdir) } my $bgenssl = 'genssl'; my $bbuildmod = 'buildmod'; @@ -196,6 +200,7 @@ if ($upref) { copy("$Bin/bin/genssl", "$PREFIX/bin/$bgenssl"); chmod 0755, "$PREFIX/bin/auto", "$PREFIX/bin/$bgenssl", "$PREFIX/bin/$bbuildmod"; rcopy("$Bin/lib/*", "$libdir/"); + copy("$Bin/etc/example.conf", "$distdir/"); remove_tree("$libdir/File"); }