[Box Backup-dev] makeparcels.pl - check for directory

Ben Summers boxbackup-dev at fluffy.co.uk
Wed Feb 1 11:42:37 GMT 2006


On 1 Feb 2006, at 11:36, Martin Ebourne wrote:

> Stefan Norlin <stefan.norlin at infoflexconnect.se> wrote:
>> Index: infrastructure/makeparcels.pl
>> ===================================================================
>> --- infrastructure/makeparcels.pl       (revision 354)
>> +++ infrastructure/makeparcels.pl       (working copy)
>> @@ -104,7 +104,7 @@
>>        print MAKE $target,":\n";
>>
>>        my $dir = parcel_dir($parcel);
>> -       print MAKE "\tmkdir $dir\n";
>> +       print MAKE "\t[ -d $dir ] || mkdir $dir\n";
>>
>>        open SCRIPT,">parcels/scripts/install-$parcel" or die  
>> "Can't open installer script for $parcel for writing";
>>        print SCRIPT "#!/bin/sh\n\n";
>
> Ben - make sense if I commit this?

OK. I assume it will copy updated binaries over the ones in the  
target directories?

Ben





More information about the Boxbackup-dev mailing list