Correction

From: Clifford Beshers <beshers_at_cs.columbia.edu>
Date: Thu, 15 Feb 1996 00:45:06 -0500

I provided the wrong script for editing endings in my last post. That
was the wishful thinking script.

Isn't (load "foo") supposed to be able to tell "foo.stk" from
"foo.so"? There seems to be code to that effect. When I try it
without the .so or .sl, it complains horribly.

Oh well, here is the correct patching script:

#!/bin/sh

cd Lib

echo 'Setting the shared library extension.'
for i in init.stk
do
        echo "Converting $i"
        sed -e 's/\"so\"/\"sl\"/g' $i >TMPFILE
        mv -f $i ${i}.orig
        mv -f TMPFILE $i
done
cd ..



echo 'Changes from here should be made permanently.'
echo 'That is, for code to be portable, the shared library'
echo 'suffix should be omitted so the default is chosen.'

echo 'Converting all files in Lib'
cd Lib
for i in *.stk
do
        grep 'load \".*.so\"' $i || continue
        echo "Converting $i"
# sed -e 's/\(load \".*\).so\"/\1\"/g' $i >TMPFILE
        sed -e '/load.*\.so/s/\.so/.sl/g' $i >TMPFILE
        mv -f $i ${i}.orig
        mv -f TMPFILE $i
done


cd ..

# These changes should be done permanently.

echo 'Converting all files in STklos'
cd STklos
for i in *.stk
do
        grep 'load \".*.so\"' $i || continue
        echo "Converting $i"
# sed -e 's/\(load \".*\).so\"/\1\"/g' $i >TMPFILE
        sed -e '/load.*\.so/s/\.so/.sl/g' $i >TMPFILE
        mv -f $i ${i}.orig
        mv -f TMPFILE $i
done

cd ..

-- 
Clifford Beshers                Office:  (212) 939-7087   Lab: (212) 939-7101
Columbia University             Fax:     (212) 666-0140   
500 West 12Oth St., Room 450    WWW:     http://www.cs.columbia.edu/~beshers
New York, NY 10027              Email:   beshers_at_cs.columbia.edu
Received on Thu Feb 15 1996 - 06:47:07 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST