summaryrefslogtreecommitdiff
path: root/src/chroot-tools/chcleanup.lib.gen
diff options
context:
space:
mode:
Diffstat (limited to 'src/chroot-tools/chcleanup.lib.gen')
-rwxr-xr-xsrc/chroot-tools/chcleanup.lib.gen8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/chroot-tools/chcleanup.lib.gen b/src/chroot-tools/chcleanup.lib.gen
new file mode 100755
index 0000000..71dc327
--- /dev/null
+++ b/src/chroot-tools/chcleanup.lib.gen
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+set -e
+
+commonsh=$1
+
+echo '. /usr/share/makepkg/util.sh'
+. "$commonsh"; declare -f _l _p
+sed -n '/^eval/,/^\S/p' "$commonsh"