84d4f6391a
--HG-- extra : convert_revision : a156c08bb49d2314e667b86feba5a5a3180e39f2
18 lines
410 B
Bash
18 lines
410 B
Bash
#
|
|
# 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
|
|
}
|