DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T l

⟦62bcab057⟧ TextFile

    Length: 821 (0x335)
    Types: TextFile
    Names: »libconvert«

Derivation

└─⟦a05ed705a⟧ Bits:30007078 DKUUG GNU 2/12/89
    └─⟦4ef0278ca⟧ »./binutils.tar.Z« 
        └─⟦3761b9c35⟧ 
            └─⟦this⟧ »binutils/libconvert« 

TextFile

#! /bin/sh

if [ $# != 2 ]
then
	echo 'usage: libconvert from.a to.a'
	exit 1
fi

fromlib=$1
tolib=$2

#
# Convert coff libc to a coff-encapsulated libc
# suitable for linking with the GNU linker.
#
# Extract all members of /lib/libc.a (using coff ar).
# Convert each using robotussin.
# Create new libc (using gnu ar) with members in the same order as coff libc.

# set -e makes this script exit if any command gets an error
set -e

case $fromlib in 
/*) 	rel_fromlib=$fromlib ;;
*) 	rel_fromlib=../$fromlib ;;
esac

case $tolib in
/*)	rel_tolib=$tolib ;;
*)	rel_tolib=../$tolib ;;
esac

rm -rf libconvert-tmp
mkdir libconvert-tmp
cd libconvert-tmp 
/bin/ar x $rel_fromlib
for i in *
do
	echo $i
	../robotussin $i x
	mv x $i
done
rm -f $rel_tolib
../ar rs $rel_tolib `/bin/ar t $rel_fromlib`
cd ..
rm -rf libconvert-tmp