summaryrefslogtreecommitdiff
path: root/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'common.sh')
-rw-r--r--common.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/common.sh b/common.sh
index d2fcb5f..371b557 100644
--- a/common.sh
+++ b/common.sh
@@ -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'))
+}