From 7a2c426add338b6fd3c62271903caa74118c92a2 Mon Sep 17 00:00:00 2001 From: Charlotte Koch Date: Tue, 16 Jul 2024 11:06:24 -0700 Subject: The 'lib' dir for the project is different from that for WilloraPDF itself --- bin/willora | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/willora b/bin/willora index 6dd8c6b..dc272e8 100755 --- a/bin/willora +++ b/bin/willora @@ -41,11 +41,12 @@ class Willora def new_project # Make sure the WilloraPDF base files seem OK. _willorabase = File.join(__dir__, "..") + _projectfiles = File.join(_willorabase, "project-files") _templatedir = File.join(_willorabase, "templates") #epubassetsdir = File.join(_willorabase, "epub-assets") fontsdir = File.join(_willorabase, "fonts") - libdir = File.join(_willorabase, "lib") + libdir = File.join(_projectfiles, "lib") mkdir = File.join(_willorabase, "mk") scriptdir = File.join(_willorabase, "script") themedir = File.join(_willorabase, "themes") @@ -122,7 +123,7 @@ class Willora end # Leftovers. - converter_class_orig = File.join(_willorabase, "lib", "willora_pdf_converter.rb") + converter_class_orig = File.join(libdir, "willora_pdf_converter.rb") converter_class_new = File.join(realdestbase, "lib", "this_pdf_converter.rb") puts "#{converter_class_orig} => #{converter_class_new}" FileUtils.copy_entry(converter_class_orig, converter_class_new) -- cgit v1.2.3