[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: automoc and perl
From:       David Faure <faure () kde ! org>
Date:       1998-09-11 13:59:05
[Download RAW message or body]

> > > ./findperl automoc
> 
> This script should do it.

The problem is that, then, you (we) need to update automoc itself to generate
lines with "../../finperl ../../automoc" instead of "perl ../../automoc" 
in the Makefile.ins (this line is called whenever the Makefile.am is changed).

Or can we put this at the beginning of automoc itself (calling perl on 
the file itself) ? I know it can be done in the case of a 1 line
"exec" statement (using a comment and a '\') but probably not for 10
'sh' lines....

> #!/bin/sh
> 
> IFS=": "
> for i in $PATH; do \
>   perl="$i/perl"
>   if [ -x "$perl" ] && $perl -e "require 5.000" 2>/dev/null; then
>     exec "$perl" $@
>   fi
> done
> 
> echo "$0": perl: command not found or wrong version >&2
> exit 1
> 
> -bieker-
> 
> Mot hodepinne: Windows 98     Unix.
> I am a FreeBSD, Sinux, Digital Unix, SunOS, and Linux user.

-- 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic