From 1ae5a72b16447b690b8fea60013a032539e9f20e Mon Sep 17 00:00:00 2001 From: Stephen L Johnson Date: Fri, 7 Jun 2002 00:35:31 +0000 Subject: [PATCH] added code to build process to copy spong.conf-sample file to spong.conf if it's not found in the config/ dir --- build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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" ); -- 2.30.2