PKGBUILDs/community/mcedit-pkgbuild-syntax/mcedit-pkgbuild-syntax.install

24 lines
477 B
Text
Raw Normal View History

2009-10-10 02:15:33 +00:00
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
}