aboutsummaryrefslogtreecommitdiffstats
path: root/testing/apk-post-messages/apk-post-messages.trigger
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2015-07-16 12:37:16 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-07-16 13:31:24 +0000
commitccc51392cde19e7d5193219f2e376d4dd43f1672 (patch)
treecb6fb534627f1c5609c00ab55405dcea8d61114b /testing/apk-post-messages/apk-post-messages.trigger
parent1c170a58bd6bb64daf2412232c9413f9b3b99fc3 (diff)
downloadaports-ccc51392cde19e7d5193219f2e376d4dd43f1672.tar.bz2
aports-ccc51392cde19e7d5193219f2e376d4dd43f1672.tar.xz
testing/apk-post-messages: new aport
Changes v1 -> v2: - with a trigger only for README.alpine
Diffstat (limited to 'testing/apk-post-messages/apk-post-messages.trigger')
-rw-r--r--testing/apk-post-messages/apk-post-messages.trigger16
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/apk-post-messages/apk-post-messages.trigger b/testing/apk-post-messages/apk-post-messages.trigger
new file mode 100644
index 0000000000..224d295937
--- /dev/null
+++ b/testing/apk-post-messages/apk-post-messages.trigger
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+x=README.alpine
+for i; do
+ if [ -f "$i/$x" ]; then
+ msg="| $i: $x |"
+ msg_len=$(( $(echo $msg |wc -m) - 1))
+ printf "%${msg_len}s" | sed 's/ /-/g'
+ echo -e "\n$msg"
+ printf "%${msg_len}s" | sed 's/ /=/g'
+ echo -e "\n"
+ cat $i/$x
+ echo -e; break
+ fi
+done
+