font-util: use replace-interpreter.sh and remove perl-replace-path.sh

helper which isn't used now.

--HG--
extra : convert_revision : b1291d48a5b55e229c37e0374a618ab079eaeb83
This commit is contained in:
Juan RP 2008-10-14 19:44:22 +02:00
parent b9107abc20
commit dcaa308afe
3 changed files with 6 additions and 23 deletions

View File

@ -1,18 +0,0 @@
#
# This helper transforms files with wrong perl path to the correct
# one pointing at XBPS_MASTERDIR/bin/perl.
#
perl_transform_file()
{
local files="$@"
[ -z "$files" ] && exit 1
for f in ${files}; do
[ ! -f $f ] && continue
$sed_cmd -e "s|^#!.*/usr/bin/perl|#!$XBPS_MASTERDIR/bin/perl|" \
$f > $f.in && $mv_cmd -f $f.in $f && \
echo "=> Transformed $(basename $f) with correct path."
done
}

View File

@ -0,0 +1,6 @@
#
# Transform perl shebang path with correct one in bdftruncate.pl.
#
. $XBPS_TMPLHELPDIR/replace-interpreter.sh
replace_interpreter perl bdftruncate.pl

View File

@ -13,8 +13,3 @@ long_desc="
and generating truncated BDF font from ISO 10646-1-encoded BDF
font. It also provides mapping-files (character set tables)
and the fontutil pkg-config and autoconf macro files."
# Transform bdftruncate.pl with correct path.
run_stuff_before_build_cmd="
. $XBPS_TMPLHELPDIR/perl-replace-path.sh
perl_transform_file $wrksrc/bdftruncate.pl"