From 38d68b9e4fc9735dae568a4964125c104880bc46 Mon Sep 17 00:00:00 2001 From: wookey Date: Sun, 27 Feb 2011 03:23:10 +0000 Subject: [PATCH] make missing paths so that noinfo/various data gets created and cave index actually works. Comment suggests this is bad but I don't see why. Also stop it being quiet so we can see what's what. --- Makefile | 2 +- noinfo/make-indxal4.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3529de98f..ec957f76c 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ autogen_pages: indxal.htm # built manually in a survex build tree. indxal.htm: noinfo/CAVETAB2.CSV noinfo/all.pos noinfo/make-indxal4.pl noinfo/areapage_skeletons/*.html noinfo/lengths.dat python noinfo/make-areaindices.py - -(cd noinfo && perl ./make-indxal4.pl -q CAVETAB2.CSV) + -(cd noinfo && perl ./make-indxal4.pl CAVETAB2.CSV) noinfo/lengths.dat: -python noinfo/create_dplong_table.py || echo "Carry on and build other targets anyway" diff --git a/noinfo/make-indxal4.pl b/noinfo/make-indxal4.pl index 62219aa96..81e73f350 100755 --- a/noinfo/make-indxal4.pl +++ b/noinfo/make-indxal4.pl @@ -265,7 +265,7 @@ sub do_this_line { $path =~ s/\/$fn//g; # Make the directory that the file is in, in case it doesn't exist yet - #mkpath($path); + mkpath($path); # this is considered harmful now creation of directories is versioned - DL # Open the file and start writing to it