diff options
| author | Charlotte Koch <charlotte@magentastripe.com> | 2024-07-16 11:06:24 -0700 |
|---|---|---|
| committer | Charlotte Koch <charlotte@magentastripe.com> | 2024-07-16 11:06:24 -0700 |
| commit | 7a2c426add338b6fd3c62271903caa74118c92a2 (patch) | |
| tree | a4fe196f7b8f3b4755b828a2ee8c33c86167908b /bin | |
| parent | 35aeb83182d91599e602b88ca15f219e1a6e2ca8 (diff) | |
The 'lib' dir for the project is different from that for WilloraPDF itself
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/willora | 5 |
1 files changed, 3 insertions, 2 deletions
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) |
