Mail archive
alpine-aports

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

From: Stuart Cardall <developer_at_it-offshore.co.uk>
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
_at_@ -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:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Sat Nov 28 2015 - 21:19:19 GMT