diff options
Diffstat (limited to 'lang/modula-3/scripts/fix_pathnames')
-rw-r--r-- | lang/modula-3/scripts/fix_pathnames | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lang/modula-3/scripts/fix_pathnames b/lang/modula-3/scripts/fix_pathnames index c04fca5f9868..2eca36b5b708 100644 --- a/lang/modula-3/scripts/fix_pathnames +++ b/lang/modula-3/scripts/fix_pathnames @@ -1,6 +1,6 @@ #! /bin/sh # -# $Id: fix_pathnames,v 1.2 1996/09/10 05:25:10 jdp Exp $ +# $Id: fix_pathnames,v 1.3 1996/10/29 23:17:19 jdp Exp $ umask 022 @@ -20,8 +20,10 @@ pkgdir=lib/m3/pkg cd ${newpath}/${pkgdir} for i in `cd ${oldpath}/${pkgdir}; \ find . -type f \( -name .M3IMPTAB -o -name FreeBSD2 \)`; do - test -f ${i}.bak || cp -p ${i} ${i}.bak - rm -f ${i} - sed -e "s|/[^ ]*/work/installed/|${newpath}/|g" ${i}.bak >${i} && \ - rm -f ${i}.bak + if [ -f ${i} ]; then + test -f ${i}.bak || cp -p ${i} ${i}.bak + rm -f ${i} + sed -e "s|/[^ ]*/work/installed/|${newpath}/|g" ${i}.bak >${i} && \ + rm -f ${i}.bak + fi done |