From: Chris Hanson Date: Thu, 7 Dec 2000 22:12:55 +0000 (+0000) Subject: Fix rule to create runtime-check directory. Link rules were broken, X-Git-Tag: 20090517-FFI~3113 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=46eb9d24c1fbe64c8e7ccef6ebfeaf8e0715b1f9;p=mit-scheme.git Fix rule to create runtime-check directory. Link rules were broken, and script can't assume that .bin files exist yet; we must work from the .scm files and transform the names. --- diff --git a/v7/src/etc/create-dirs.sh b/v7/src/etc/create-dirs.sh index 4253e618b..44a98af52 100755 --- a/v7/src/etc/create-dirs.sh +++ b/v7/src/etc/create-dirs.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $Id: create-dirs.sh,v 1.1 2000/12/07 21:50:08 cph Exp $ +# $Id: create-dirs.sh,v 1.2 2000/12/07 22:12:55 cph Exp $ # # Copyright (c) 2000 Massachusetts Institute of Technology # @@ -20,8 +20,6 @@ # Create build directories and links. -LN_S="ln -s" - maybe_mkdir () { if test ! -d ${1}; then @@ -42,11 +40,12 @@ maybe_link () maybe_mkdir runtime-check ( cd runtime - for FN in *.bin runtime.bco runtime.bld; do - if test ! -f ../runtime-check/${FN}; then - echo "${LN_S} ../runtime/${FN} runtime-check/." - ${LN_S} ../runtime/${FN} runtime-check/. - fi + for FN in *.scm; do + FN_BIN="`basename ${FN} .scm`.bin" + maybe_link ../runtime-check/${FN_BIN} ../runtime/${FN_BIN} + done + for FN in runtime.bco runtime.bld; do + maybe_link ../runtime-check/${FN} ../runtime/${FN} done )