Subject: [alpine-aports] [PATCH] main/nano: add sh.nanorc syntax for APKBUILD files

From: Stuart Cardall <[email-masked]>
Date: Sat, 28 Nov 2015 21:19:19 +0000

adds colour for editing APKBUILD files
---
 main/nano/APKBUILD | 1 +
 1 file changed, 1 insertion(+)

diff --git a/main/nano/APKBUILD b/main/nano/APKBUILD
index f139620..5ae9b31 100644
--- a/main/nano/APKBUILD
+++ b/main/nano/APKBUILD
@@ -47,6 +47,7 @@ package() {
 	mkdir -p "$pkgdir"/etc
 	cp "$srcdir/$pkgname-$pkgver"/doc/nanorc.sample "$pkgdir"/etc/nanorc
 	sed -i 's:# include:include:g' "$pkgdir"/etc/nanorc
+	sed -i "/syntax/s/\"$/\" \"APKBUILD&/" "$pkgdir"/usr/share/nano/sh.nanorc
 }
 
 md5sums="0acc0ca68eee68ef38f899532a4873c6  nano-2.4.3.tar.gz"
-- 
2.6.3

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---