aboutsummaryrefslogtreecommitdiffstats
path: root/do-link
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2021-08-06 15:53:53 +0100
committerTomasz Kramkowski <tk@the-tk.com>2021-08-06 15:53:53 +0100
commit01438f00d44adf33f59da729b347eca60cb461a8 (patch)
tree474701f6f8cc830247080f87cdb50c38f017a9c9 /do-link
parent12309732c08ba06733b05d5d2ecfdb0018c89e17 (diff)
downloadpack-01438f00d44adf33f59da729b347eca60cb461a8.tar.gz
pack-01438f00d44adf33f59da729b347eca60cb461a8.tar.xz
pack-01438f00d44adf33f59da729b347eca60cb461a8.zip
implement do-link to simplify linking .do files
Diffstat (limited to 'do-link')
-rwxr-xr-xdo-link8
1 files changed, 8 insertions, 0 deletions
diff --git a/do-link b/do-link
new file mode 100755
index 0000000..189e899
--- /dev/null
+++ b/do-link
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+set -e
+type=$1
+. "$2" # .do file which we are "interpreting"
+redo-ifchange "$0" "link-$type.tool" "${objects[@]}"
+shift 2
+. "./link-$type.tool"
+"${cmd[@]}"