diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2016-08-31 00:08:49 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2016-08-31 00:08:49 +0000 |
| commit | ca57057f598bfc7119f79f71bf38ec88244ab396 (patch) | |
| tree | 051f78ef258707b493cc7cb21569b6949915f6c7 /m4/autopat | |
| parent | e66b16bf080ead1c51f321eaf56710c771778706 (diff) | |
Import am-utils 6.2,vendor/amd/6.2vendor/amd
Suggested by: pfg@
Obtained from: ftp://ftp.am-utils.org/pub/am-utils/
Notes
Notes:
svn path=/vendor/amd/dist/; revision=305100
svn path=/vendor/amd/6.2/; revision=305101; tag=vendor/amd/6.2
Diffstat (limited to 'm4/autopat')
| -rwxr-xr-x | m4/autopat | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/m4/autopat b/m4/autopat new file mode 100755 index 000000000000..e0c3d36546e4 --- /dev/null +++ b/m4/autopat @@ -0,0 +1,36 @@ +#!/bin/bash -norc +# find patterns of cache entries to automatically remove from config.cache +# Used by am-utils developers. +# Erez Zadok <ezk AT cs.columbia.edu> +#set -x + +macdir="../m4/macros" + +# find the right directory +if [ ! -d $macdir ]; then + echo "Could not find $macdir directory." + exit 2 +fi + +# skip if no config.cache file +if [ ! -f config.cache ]; then + echo "Not in the A.cpu-company-system." + exit 2 +fi + +# look for files that changed vs. config.cache +pat="" +for i in ${macdir}/*.m4; do + if test $i -nt config.cache; then + n=`egrep '^ac_cv_' $i |sed 's/[^a-zA-Z0-9_].*//g'|sort|uniq` + if test -z "$n"; then + continue; + fi + if test -z "$pat"; then + pat="$n" + else + pat="$pat|$n" + fi + fi +done +echo "$pat" |
