diff options
author | Case Duckworth | 2024-01-25 23:04:02 -0600 |
---|---|---|
committer | Case Duckworth | 2024-01-25 23:04:02 -0600 |
commit | d17a818581cf73ec2801bfd8d80a2e6e95c3b412 (patch) | |
tree | 3f94fbf5e20b7b38adaf9e1aaffc4344ee136c2e /tet | |
parent | Update to use prefix characters (diff) | |
download | et-d17a818581cf73ec2801bfd8d80a2e6e95c3b412.tar.gz et-d17a818581cf73ec2801bfd8d80a2e6e95c3b412.zip |
Add templating capability main
Diffstat (limited to 'tet')
-rwxr-xr-x | tet | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tet b/tet new file mode 100755 index 0000000..c97d677 --- /dev/null +++ b/tet | |||
@@ -0,0 +1,9 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | __template__="$1"; shift | ||
4 | et="$(which et||echo ./et)" | ||
5 | |||
6 | "$et" "$@" | sed '$d' | ||
7 | echo 'shexpand<<%' | ||
8 | cat "$__template__" | ||
9 | echo % | ||