bugfix and extra
This commit is contained in:
parent
33f9644197
commit
0fd9059750
2
in
2
in
@ -1 +1 @@
|
|||||||
Subproject commit 246ebc39e0a08237b50cbf4c57eab4cde0b0b98d
|
Subproject commit aa091b501be4fabd8829b1d09073e22d3b6e763e
|
10
pfiles.rb
10
pfiles.rb
@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/ruby
|
#!/usr/bin/ruby
|
||||||
# pfiles.rb
|
# pfiles.rb
|
||||||
# v1.1-p0
|
# v1.1-p1
|
||||||
|
abort "\x1B[1;31mERR\x1B[0m: No arguments supplied" if ARGV.length == 0
|
||||||
require 'find'
|
require 'find'
|
||||||
ignore=!File.file?('dat/ignore.txt') ? [] : File.readlines('dat/ignore.txt')
|
ignore=!File.file?('dat/ignore.txt') ? [] : File.readlines('dat/ignore.txt')
|
||||||
if ignore != []
|
if ignore != []
|
||||||
@ -15,12 +16,11 @@ class Enumerator
|
|||||||
return out
|
return out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
list=Find.find('in')
|
l=Find.find('in').collect
|
||||||
l=list.collect
|
|
||||||
case ARGV.first
|
case ARGV.first
|
||||||
when "doc"
|
when "doc"
|
||||||
for i in l do
|
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)
|
if /\.(txti|org|md|e.html)$/.match?(i)
|
||||||
print i
|
print i
|
||||||
print ' ' unless i==l.last
|
print ' ' unless i==l.last
|
||||||
@ -36,7 +36,7 @@ when "sass"
|
|||||||
end
|
end
|
||||||
when "dir"
|
when "dir"
|
||||||
for i in l do
|
for i in l do
|
||||||
next if ignore.include?(i)
|
next if ignore.include?(i) or i == ".git"
|
||||||
if File.directory?(i)
|
if File.directory?(i)
|
||||||
print i
|
print i
|
||||||
print ' ' unless i==l.last
|
print ' ' unless i==l.last
|
||||||
|
@ -34,7 +34,7 @@ function docs {
|
|||||||
inf "Rendering document files..."
|
inf "Rendering document files..."
|
||||||
for i in ${doc[@]}; do
|
for i in ${doc[@]}; do
|
||||||
o="${i/in/out}"
|
o="${i/in/out}"
|
||||||
o="${o%.*}.html"
|
o="${o%%.*}.html"
|
||||||
echo "'$i' -> '$o'"
|
echo "'$i' -> '$o'"
|
||||||
if test -z "${title[$i]}"; then
|
if test -z "${title[$i]}"; then
|
||||||
m4 -D_INFILE="$i" -DCSSI=$(awk -f awk/getsd.awk <<< "$i") m4/main.html.m4 > $o
|
m4 -D_INFILE="$i" -DCSSI=$(awk -f awk/getsd.awk <<< "$i") m4/main.html.m4 > $o
|
||||||
|
Loading…
x
Reference in New Issue
Block a user