Angus Leeming <[EMAIL PROTECTED]> writes:

| Iast night I updated my copy of cvs. Last time I did this was maybe 
| two days ago.
>
| I find that I have to run autogen.sh and configure; fair enough.
>
| Ususally, this results in config.h being unchanged, but not this time. It is 
| totally altered, mostly by a re-ordering of the variables which makes it hard 
| to see if anything has really changed.
>
| So I wrote a little script:
| #!/bin/sh
| file_old=config.h-safe
| file_new=config.h
>
| file_old_defines=tmp_old
| grep "#define" ${file_old} > ${file_old_defines}
>
| count=0
| defined=
| for item in `cat ${file_old_defines}`
| do
|     if [ "${item}" = "#define" ]; then
|       count=0
|       defined=
|     else
|       count=`expr ${count} + 1`
|     fi
|     if [ ${count} -eq 1 ]; then
|       defined=${item}
|       grep_old=`grep " ${defined} " ${file_old}`
|       grep_new=`grep " ${defined} " ${file_new}`
|       if [ "${grep_old}" != "${grep_new}" ]; then
|           echo "OLD ${grep_old}"
|           echo "NEW ${grep_new}"
|           echo
|       fi
|     fi
| done
>
| Running this
|       sh comp.sh > tmp_out
| I find that tmp_out contains:
| OLD #define DEVEL_VERSION 1
| NEW /* #undef DEVEL_VERSION */

my doing, because of this:

| OLD #define PACKAGE "lyx-1.2.0cvs"
| NEW #define PACKAGE "lyx-1.2.0CVS"
>
| OLD #define VERSION "1.2.0cvs"
| NEW #define VERSION "1.2.0CVS"

This was not intended.

-- 
        Lgb

Reply via email to