From: Stephen L Johnson Date: Fri, 7 Jun 2002 00:35:31 +0000 (+0000) Subject: added code to build process to copy spong.conf-sample file to spong.conf if X-Git-Tag: spong-2_8_0-beta1~78 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ae5a72b16447b690b8fea60013a032539e9f20e;p=spong.git added code to build process to copy spong.conf-sample file to spong.conf if it's not found in the config/ dir --- diff --git a/build b/build index 54fe3c8..000b7ba 100755 --- a/build +++ b/build @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#/usr/bin/perl # # You need to change the above line to the location of Perl on your machine. # And yes, I realized that I am reinventing the functionality of make here - @@ -85,6 +85,11 @@ sub build { my( $os ) = @_; my $file; + # If spong.conf file not present, copy a know good one + if ( ! -f "./config/spong.conf" ) { + ssystem( "cp ./config/spong.conf-sample ./config/spong.conf"); + } + ssystem( "mkdir ./etc" ) if ! -d "./etc"; ssystem( "cp ./config/spong.conf ./etc/spong.conf" ); ssystem( "cp ./config/spong.hosts ./etc/spong.hosts" );