diff options
author | Case Duckworth | 2024-03-18 10:49:03 -0500 |
---|---|---|
committer | Case Duckworth | 2024-03-18 10:49:03 -0500 |
commit | e09fae637a6d1ea3346c1cf0c2fa7703ec9739af (patch) | |
tree | cf7b96a9b34c4b014cb94d15a27bb47b98fc4000 /schwa.awk | |
parent | Change repo link color (diff) | |
download | schwa-e09fae637a6d1ea3346c1cf0c2fa7703ec9739af.tar.gz schwa-e09fae637a6d1ea3346c1cf0c2fa7703ec9739af.zip |
Add ROOT template variable
Diffstat (limited to 'schwa.awk')
-rwxr-xr-x | schwa.awk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/schwa.awk b/schwa.awk index 946a2cf..cdc558e 100755 --- a/schwa.awk +++ b/schwa.awk | |||
@@ -14,6 +14,8 @@ BEGIN { | |||
14 | else TMPLV["CLONE"] = "" | 14 | else TMPLV["CLONE"] = "" |
15 | if (desc) TMPLV["DESCRIPTION"] = "<p class=\"desc\">" desc "</p>" | 15 | if (desc) TMPLV["DESCRIPTION"] = "<p class=\"desc\">" desc "</p>" |
16 | else TMPLV["DESCRIPTION"] = "" | 16 | else TMPLV["DESCRIPTION"] = "" |
17 | if (root) TMPLV["ROOT"] = root | ||
18 | else TMPLV["ROOT"] = "/" | ||
17 | "pwd" | getline TMPLV["DIRECTORY"]; close("pwd") | 19 | "pwd" | getline TMPLV["DIRECTORY"]; close("pwd") |
18 | TMPLV["DIRECTORY"] = outfn(TMPLV["DIRECTORY"], 3) | 20 | TMPLV["DIRECTORY"] = outfn(TMPLV["DIRECTORY"], 3) |
19 | } | 21 | } |