| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 | #! /bin/sh## Reconfigure for a release, by updating the Makefile dependencies and# running the autotools.## $Id: reconf,v 1.3 2004/04/23 10:06:17 quozl Exp $# make the existing config.h disappear temporarilyif test -f config.hthen  mv -f config.h config.h.TMPfitouch config.h# rebuild dependencies (makedepend)for makefile in Makefile.am Makefile.uClinuxdo  echo -n "Rebuilding $makefile..."  head -`grep -n 'DO NOT ADD BELOW THIS POINT' $makefile | \	cut -d: -f1` $makefile > $makefile.new  for file in *.c  do    if test "$makefile" = "Makefile.uClinux"    then      gcc -MM $file -include config.embed.h    else      gcc -MM $file -DHAVE_CONFIG_H    fi    echo ''  done >> $makefile.new  echo 'done.'  if ! cmp -s $makefile.new $makefile  then    echo "Changes: <=old >=new"    diff $makefile $makefile.new | grep '^[<>]'    mv -f $makefile.new $makefile  else    rm -f $makefile.new    echo "No change."  fidone# restore the previous config.hrm -f config.hif test -f config.h.TMPthen  mv -f config.h.TMP config.hfi# show us what we do nextset -x# reset the configurationrm -f config.cacherm -f config.log# run the build tools sequenceaclocalautoconfautomake -a --copy --verboseautoheader
 |