#!/bin/sh -e # $Id: striplib,v 1.2 2000/02/14 20:36:31 dm Exp $ # This shell script strips the debugging information out of a library, # to make it smaller. DIR=.striplib for lib in $*; do echo stripping $lib... mkdir $DIR (cd $DIR && ar x ../$lib) rm -f $DIR/__.SYMDEF strip -d $DIR/*.o (cd $DIR && ar cq $lib *.o) mv -f $DIR/$lib . rm -rf $DIR done