summaryrefslogtreecommitdiffstats
path: root/.graveyard/lib
diff options
context:
space:
mode:
Diffstat (limited to '.graveyard/lib')
-rw-r--r--.graveyard/lib/Makefile9
-rw-r--r--.graveyard/lib/libkrebs.sh10
2 files changed, 19 insertions, 0 deletions
diff --git a/.graveyard/lib/Makefile b/.graveyard/lib/Makefile
new file mode 100644
index 00000000..4d33995f
--- /dev/null
+++ b/.graveyard/lib/Makefile
@@ -0,0 +1,9 @@
+
+
+.PHONY: all install
+all: select-target
+
+install: ../bin/libkrebs.sh
+
+../bin/libkrebs.sh: libkrebs.sh
+ ln -vsnf ../lib/$< $@
diff --git a/.graveyard/lib/libkrebs.sh b/.graveyard/lib/libkrebs.sh
new file mode 100644
index 00000000..d423a053
--- /dev/null
+++ b/.graveyard/lib/libkrebs.sh
@@ -0,0 +1,10 @@
+#! /bin/sh
+esudo() {
+ if test "${esudo-true}" = true -a `id -u` != 0; then
+ echo "we're going sudo..." >&2
+ export esudo=false
+ exec sudo "$0" "$@"
+ exit 23 # go to hell
+ fi
+}
+