[Bf-committers] making things a little more generic

Hans Lambermont bf-committers@blender.org
Tue, 14 Jan 2003 22:59:23 +0100


Kent Mein wrote:

> Anyone have any problems with the following changes?

yup :)

> --- intern/tools/cpifdiff.sh	5 Jan 2003 04:06:07 -0000	1.3
> +++ intern/tools/cpifdiff.sh	14 Jan 2003 20:23:02 -0000
> @@ -1,4 +1,4 @@
> -#!/bin/sh
> +#!/bin/bash

bash is not standard enough :-P

I'll rewrite the ${10} problem by using shifts's whenever I find time
(or anyone beats me to it ;-) which is even better)

> -#!/usr/bin/perl
> +#!/bin/sh -a # perl, really
> +
> +"true" || eval 'exec /usr/bin/perl -S $0 $argv:q';
> +eval '(exit $?0)' && eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
> +& eval 'exec /usr/bin/perl -S $0 $argv:q'
> +if 0;

eek !

#!/usr/bin/env perl

should do it as well.

Hans
-- 
http://lambermont.webhop.org/