diff options
author | Morgan Deters <mdeters@gmail.com> | 2010-09-24 21:20:33 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2010-09-24 21:20:33 +0000 |
commit | 2e1581b5840cb131b416718bc1506edfb833f5f0 (patch) | |
tree | ebe742795f919ca404c438d4eed38929dd567e1f /src | |
parent | 353c6d5c3770365f0dffcbdf697199bed156cf50 (diff) |
Fix build system for Mac OS X builds (resolves bug #203)
Diffstat (limited to 'src')
-rwxr-xr-x | src/expr/mkmetakind | 6 | ||||
-rw-r--r-- | src/theory/Makefile.subdirs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/expr/mkmetakind b/src/expr/mkmetakind index 079bea861..89e2861d6 100755 --- a/src/expr/mkmetakind +++ b/src/expr/mkmetakind @@ -210,13 +210,13 @@ function register_metakind { "; # figure out the range given by $nc - if expr "$nc" : '[0-9]\+$' >/dev/null; then + if expr "$nc" : '[0-9][0-9]*$' >/dev/null; then lb=$nc ub=$nc - elif expr "$nc" : '[0-9]\+:$' >/dev/null; then + elif expr "$nc" : '[0-9][0-9]*:$' >/dev/null; then let `echo "$nc" | awk 'BEGIN{FS=":"}{print"lb="$1}'` ub=MAX_CHILDREN - elif expr "$nc" : '[0-9]\+:[0-9]\+$' >/dev/null; then + elif expr "$nc" : '[0-9][0-9]*:[0-9][0-9]*$' >/dev/null; then let `echo "$nc" | awk 'BEGIN{FS=":"}{print"lb="$1" ub="$2}'` if [ $ub -lt $lb ]; then echo "$kf:$lineno: error in range \`$nc': LB < UB (in definition of $k)" >&2 diff --git a/src/theory/Makefile.subdirs b/src/theory/Makefile.subdirs index eafb350ae..99adc7d0d 100644 --- a/src/theory/Makefile.subdirs +++ b/src/theory/Makefile.subdirs @@ -1,5 +1,5 @@ $(top_builddir)/src/theory/.subdirs: $(top_srcdir)/src/theory/Makefile.am - $(AM_V_at)grep '^SUBDIRS = ' $(top_srcdir)/src/theory/Makefile.am | cut -d' ' -f3- | tr ' ' "\n" | xargs -i__D__ echo $(top_srcdir)/src/theory/__D__/kinds >$(top_builddir)/src/theory/.subdirs.tmp + $(AM_V_at)grep '^SUBDIRS = ' $(top_srcdir)/src/theory/Makefile.am | cut -d' ' -f3- | tr ' ' "\n" | xargs -I__D__ echo $(top_srcdir)/src/theory/__D__/kinds >$(top_builddir)/src/theory/.subdirs.tmp @if ! diff -q $(top_builddir)/src/theory/.subdirs $(top_builddir)/src/theory/.subdirs.tmp &>/dev/null; then \ echo " GEN " $@; \ $(am__mv) $(top_builddir)/src/theory/.subdirs.tmp $(top_builddir)/src/theory/.subdirs; \ |