[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: turkish patch problem: sed and binary files
- To: Tzafrir Cohen <tzafrir(at-nospam)technion.ac.il>
- Subject: Re: turkish patch problem: sed and binary files
- From: guy keren <choo(at-nospam)actcom.co.il>
- Date: Fri, 26 Oct 2001 12:32:19 +0200 (EET)
- cc: Linux-IL Mailing List <linux-il(at-nospam)linux.org.il>
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <Pine.LNX.4.33L2.0110261208400.21643-100000@canada1.technion.ac.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
On Fri, 26 Oct 2001, Tzafrir Cohen wrote:
> I upgraded to Mandrake 8.1. Among the upgrdes were netscape (to 4.78,
> which means that I had to repatch it) and an upgrade of sed, to
> sed-3.02-12mdk .
>
> I re-ran the turkish patch script, and noticed that it doesn't do
> anything.
[..details deleted...]
> I figure I could rewrite this script using perl. But is there a better
> alternative?
make the script check if perl exists on the path, and if it doesn't, run
sed as before. that'll make it still work on perl-less systems, and fall
back to the old method in the worst case.
this check would be easiest to do by running perl, and checking the exit
code, or checking if there is an executeable file in one of /usr/bin/perl,
/usr/local/bin/perl, /opt/bin/perl.
--
guy
"For world domination - press 1,
or dial 0, and please hold, for the creator." -- nob o. dy
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il