bugfix and extra

This commit is contained in:
Atlas Cove 2023-12-08 15:04:21 +00:00
parent 33f9644197
commit 0fd9059750
3 changed files with 7 additions and 7 deletions

2
in

@ -1 +1 @@
Subproject commit 246ebc39e0a08237b50cbf4c57eab4cde0b0b98d
Subproject commit aa091b501be4fabd8829b1d09073e22d3b6e763e

View File

@ -1,6 +1,7 @@
#!/usr/bin/ruby
# pfiles.rb
# v1.1-p0
# v1.1-p1
abort "\x1B[1;31mERR\x1B[0m: No arguments supplied" if ARGV.length == 0
require 'find'
ignore=!File.file?('dat/ignore.txt') ? [] : File.readlines('dat/ignore.txt')
if ignore != []
@ -15,12 +16,11 @@ class Enumerator
return out
end
end
list=Find.find('in')
l=list.collect
l=Find.find('in').collect
case ARGV.first
when "doc"
for i in l do
next if ignore.include?(i) or /(?<!\.e)\.html/.match?(i)
next if ignore.include?(i) or /(?<!\.e)\.html$/.match?(i)
if /\.(txti|org|md|e.html)$/.match?(i)
print i
print ' ' unless i==l.last
@ -36,7 +36,7 @@ when "sass"
end
when "dir"
for i in l do
next if ignore.include?(i)
next if ignore.include?(i) or i == ".git"
if File.directory?(i)
print i
print ' ' unless i==l.last

View File

@ -34,7 +34,7 @@ function docs {
inf "Rendering document files..."
for i in ${doc[@]}; do
o="${i/in/out}"
o="${o%.*}.html"
o="${o%%.*}.html"
echo "'$i' -> '$o'"
if test -z "${title[$i]}"; then
m4 -D_INFILE="$i" -DCSSI=$(awk -f awk/getsd.awk <<< "$i") m4/main.html.m4 > $o