Ethereal-dev: [Ethereal-dev] Re-indenting the configure script (please test)

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Stephen Samuel (leave the email alone)" <samnospam@xxxxxxxxxxx>
Date: Mon, 22 Mar 2004 00:14:26 -0800
I tried posting this before I was properly subscribed,
so this may be a repeat. (if so, apologies)

I was going thru the configure script to figure out why it
won't compile on my OpenBSD box (( no X libraries )).
I know that it has to do with insisting on testing the glib
configureation (it'S *NOT THERE!), but trying to figure out
the logic of the script is almost impossible

((30,000 line file with random indentation! ))

My solution was to write a program to re-indent the entire
config file...   It's a perl script that I've simple called
'redent'.

It *seems* to work (both the configure and compile seem to
have run OK).

If people would like to try out the modified configuration script,
I'd much appreciate it.. Any bugs in the redent script would also
be much appreciated.


My next step is to enable  the neutering of the glib testing

Not knowing the protocol for this list (I've just joined it),
rather than attaching the files here, I'm putting them on
my website:

http://www.bcgreen.com/ethereal/configure
   and
http://www.bcgreen.com/ethereal/redent

md5sums:
07109ed5260592ecb32ce5d896b9daba  configure
e2a0ae4d9958267d509755fdd335f755  /home/samuel/bin/redent

The new configure script can be created by simply running
redent on the original 0.10.2 configure script.

---
If you're wondering about how to verify the changes
made by my program, try the following in bash:

(presuming that the output from redent is in configure.redent)

sed 's/^[ <tab>]*//'  configure.redent | diff -  <( sed 's/^[ <tab>]*//' configure )

I think that that comparision pretty much proves that all
the differences are in line indentation.

--
Stephen Samuel +1(604)876-0426             samnospam@xxxxxxxxxxx
                   http://www.bcgreen.com/~samuel/
   Powerful committed communication. Transformation touching
     the jewel within each person and bringing it to light.