diff options
Diffstat (limited to 'common.sh')
-rw-r--r-- | common.sh | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -34,7 +34,7 @@ EOF ) add-unit() ( - install -dm755 "${1%/*}" + install -d "${1%/*}" base="$(sed 's/@[^.]*\./@./' <<<"${1##*/}")" srcs=( "etc/systemd/system/${1##*/}" @@ -55,3 +55,12 @@ add-unit() ( add-file() { install -Dm644 /dev/stdin "$@" } + +preamble() { + cd "$pkgdir" +} + +postamble() { + install -Dm644 "$BUILDFILE" -t "usr/share/doc/config" + backup=($(find "$pkgdir" -type f -printf '%P\n')) +} |