diff options
author | Case Duckworth | 2021-01-30 15:28:28 -0600 |
---|---|---|
committer | Case Duckworth | 2021-01-30 15:28:28 -0600 |
commit | ba91b9d3da4e0ab27c8b648170e02556bd7fb6f1 (patch) | |
tree | d752e522c6e22697cfde5cdd3db7bab4c87b8e59 | |
parent | Add links to repos (diff) | |
download | unk-ba91b9d3da4e0ab27c8b648170e02556bd7fb6f1.tar.gz unk-ba91b9d3da4e0ab27c8b648170e02556bd7fb6f1.zip |
Move TM to L; change I/ file names
TM->L saves 3b changing I/ filenames to include the output extension before the input extension saves 4 bytes, and it's more flexible: it can output any type of files now.
-rw-r--r-- | I/carpe-diem.html.lh (renamed from I/carpe-diem.lh) | 0 | ||||
l--------- | I/index.html.lh (renamed from I/index.lh) | 0 | ||||
-rw-r--r-- | I/rosa-rosa-rosam.html.lh (renamed from I/rosa-rosa-rosam.lh) | 0 | ||||
-rw-r--r-- | I/spqr.html.lh (renamed from I/spqr.lh) | 0 | ||||
-rw-r--r-- | I/tu-quoque.html.lh (renamed from I/tu-quoque.lh) | 0 | ||||
-rw-r--r-- | L (renamed from TM) | 0 | ||||
-rwxr-xr-x | unk | 4 |
7 files changed, 2 insertions, 2 deletions
diff --git a/I/carpe-diem.lh b/I/carpe-diem.html.lh index c5ea725..c5ea725 100644 --- a/I/carpe-diem.lh +++ b/I/carpe-diem.html.lh | |||
diff --git a/I/index.lh b/I/index.html.lh index 32d46ee..32d46ee 120000 --- a/I/index.lh +++ b/I/index.html.lh | |||
diff --git a/I/rosa-rosa-rosam.lh b/I/rosa-rosa-rosam.html.lh index fe0de0e..fe0de0e 100644 --- a/I/rosa-rosa-rosam.lh +++ b/I/rosa-rosa-rosam.html.lh | |||
diff --git a/I/spqr.lh b/I/spqr.html.lh index 88b609a..88b609a 100644 --- a/I/spqr.lh +++ b/I/spqr.html.lh | |||
diff --git a/I/tu-quoque.lh b/I/tu-quoque.html.lh index 1e5ada2..1e5ada2 100644 --- a/I/tu-quoque.lh +++ b/I/tu-quoque.html.lh | |||
diff --git a/TM b/L index 6b63dbb..6b63dbb 100644 --- a/TM +++ b/L | |||
diff --git a/unk b/unk index 3c9e749..eee8c1b 100755 --- a/unk +++ b/unk | |||
@@ -1,7 +1,7 @@ | |||
1 | #!/bin/sh -e | 1 | #!/bin/sh -e |
2 | alias c=cat q=test e=echo | 2 | alias c=cat q=test e=echo |
3 | rm -rf O;mkdir -p O | 3 | rm -rf O;mkdir -p O |
4 | q -f TM||e '`<$F`'>TM | 4 | q -f L||e '`c $F`'>L |
5 | q -d S&&cp -r S O/ | 5 | q -d S&&cp -r S O/ |
6 | X(){ eval "$(e 'c<<ZZ';c "$@";e;e ZZ)";} | 6 | X(){ eval "$(e 'c<<ZZ';c "$@";e;e ZZ)";} |
7 | for F in I/*;do | 7 | for F in I/*;do |
@@ -9,5 +9,5 @@ q -f "$F"&& (e $F | |||
9 | N="${F#I/}" | 9 | N="${F#I/}" |
10 | T(){ sed 1q "$F";} | 10 | T(){ sed 1q "$F";} |
11 | B(){ sed 1d "$F";} | 11 | B(){ sed 1d "$F";} |
12 | X TM>"O/${N%%.*}.htm") | 12 | X L>"O/${N%.*}") |
13 | done | 13 | done |