summaryrefslogtreecommitdiff
path: root/src/chroot-tools/chcleanup.lib.gen
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-01-03 12:17:09 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2018-01-03 13:00:32 -0500
commitb8c5c50d5eddd2346e579184305ecfb61d5660a8 (patch)
tree426020576ff7cf3044420752d0e24528e2ea4f38 /src/chroot-tools/chcleanup.lib.gen
parent4bd0f69b5e5889158ccc13c64551f6d42da4c3bd (diff)
update for new devtools
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"