PKGBUILDs/community/mcedit-pkgbuild-syntax/mcedit-pkgbuild-syntax.install
2009-10-09 21:15:33 -05:00

23 lines
477 B
Text

post_install() {
cd /usr/share/mc/syntax
sed -i 's#file \.\\\* unknown##
s#include unknown.syntax##' Syntax
cat >>Syntax <<EOF
file PKGBUILD Arch\\sPKGBUILD
include PKGBUILD.syntax
file \\.install$ Arch\\sinstall
include sh.syntax
file .\\* unknown
include unknown.syntax
EOF
}
pre_remove() {
cd /usr/share/mc/syntax
sed -i 's#file PKGBUILD Arch\\sPKGBUILD##
s#include PKGBUILD\.syntax##
s#file \\\.install$ Arch\\sinstall##
s#include sh\.syntax##' Syntax
}