perl-XML-SAX: avoid env(1) in INSTALL/REMOVE.
This commit is contained in:
parent
f33efd6ea5
commit
85fcfb5973
|
@ -5,7 +5,7 @@ case "${ACTION}" in
|
||||||
pre)
|
pre)
|
||||||
;;
|
;;
|
||||||
post)
|
post)
|
||||||
env LC_ALL=C perl -MXML::SAX -e \
|
LC_ALL=C perl -MXML::SAX -e \
|
||||||
"XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" \
|
"XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" \
|
||||||
2>&1 >/dev/null
|
2>&1 >/dev/null
|
||||||
[ $? -eq 0 ] && echo "Added parser to XML::SAX registry."
|
[ $? -eq 0 ] && echo "Added parser to XML::SAX registry."
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#
|
#
|
||||||
case "${ACTION}" in
|
case "${ACTION}" in
|
||||||
pre)
|
pre)
|
||||||
env LC_ALL=C perl -MXML::SAX -e \
|
LC_ALL=C perl -MXML::SAX -e \
|
||||||
"XML::SAX->remove_parser(q(XML::SAX::PurePerl))->save_parsers()" \
|
"XML::SAX->remove_parser(q(XML::SAX::PurePerl))->save_parsers()" \
|
||||||
2>&1 >/dev/null
|
2>&1 >/dev/null
|
||||||
[ $? -eq 0 ] && echo "Removed parser from XML::SAX registry."
|
[ $? -eq 0 ] && echo "Removed parser from XML::SAX registry."
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template build file for 'perl-XML-SAX'.
|
# Template build file for 'perl-XML-SAX'.
|
||||||
pkgname=perl-XML-SAX
|
pkgname=perl-XML-SAX
|
||||||
version=0.96
|
version=0.96
|
||||||
revision=2
|
revision=3
|
||||||
wrksrc="XML-SAX-$version"
|
wrksrc="XML-SAX-$version"
|
||||||
distfiles="${CPAN_SITE}/XML/XML-SAX-$version.tar.gz"
|
distfiles="${CPAN_SITE}/XML/XML-SAX-$version.tar.gz"
|
||||||
build_style=perl_module
|
build_style=perl_module
|
||||||
|
|
Loading…
Reference in New Issue