> total applied/ape-dumb-autohell-fixes
> drwxrwxr-x 1 uriel sys 0 Feb 13 09:35 applied/ape-dumb-autohell-fixes
> from [EMAIL PROTECTED]
> /rc/bin/ape/printf
> /sys/src/ape/cmd/ls.c
> Small 'fixes' to APE to make auto*hell a bit happier.
>
> Had to create a fork of ls to better emulate Unix ls:
> Auto*hell tries to use ls -L because some sort of symlink braindamage
> which obviously doesn't apply to Plan 9, allow that flag but ignore it.
>
> Auto hell does some weird tests comparing the arguments it gives to ls
> with the output of ls, cleanname() breaks those tests by rewriting parts
> of the path, so removed the calls to cleanname().
>
> Auto*hell also often calls printf with a single argument and no
> formating,
> so I created a really dummy printf that just prints it's first argument.
>
> This patch is not of much value, but when trying to wade thru auto*hell
> land it removes lots of noise. Further patches might follow as I go thru
> the experience of trying to get a single auto*hell script to run, if I
> don't go mad first.
>
> Mon Feb 13 09:31:40 EST 2006 rsc
> I put in a shell script to simulate Unix ls better.
> I do not want to fork ls.
That is what I did at first, but then I hit a wall, eg.,:
% grep '\$srcdir/configure' SDL-1.2.9/configure
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
set X `ls -t $srcdir/configure conftest.file`
if test "$*" != "X $srcdir/configure conftest.file" \
&& test "$*" != "X conftest.file $srcdir/configure"; then
($srcdir is '.')
I don't like the idea of forking stuff, but in the end it's going to be the only
way if APE is going to emulate all the lunix crap well enough to be useful.
> I do not believe that cleanname needs to come out.
> I used to run ./configure scripts all the time without
> needing to touch ls.
Maybe it's a recent "improvement" to the auto*hell world.
uriel