diff --git a/in b/in index 246ebc3..aa091b5 160000 --- a/in +++ b/in @@ -1 +1 @@ -Subproject commit 246ebc39e0a08237b50cbf4c57eab4cde0b0b98d +Subproject commit aa091b501be4fabd8829b1d09073e22d3b6e763e diff --git a/pfiles.rb b/pfiles.rb index 334662a..2aa7aaf 100755 --- a/pfiles.rb +++ b/pfiles.rb @@ -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 /(? '$o'" if test -z "${title[$i]}"; then m4 -D_INFILE="$i" -DCSSI=$(awk -f awk/getsd.awk <<< "$i") m4/main.html.m4 > $o