1#!/bin/sh23set -e45trap 'rm -f file* $tmp1' EXIT6trap 'exit $?' HUP INT TERM78tmp1=tmp1.$$910############################################################################11#extract all members1213cp master.a file.a1415$EXEC scc ar -xv file.a file1 file2 file316cat file1 file2 file3 > $tmp11718diff -u $tmp1 - <<EOF19This is the first file,20and it should go in the21first position in the archive.22But this other one is the second one,23and it shouldn't go in the first position24because it should go in the second position.25and at the end, this is the last file26that should go at the end of the file,27thus it should go in the third position.28EOF2930if test `ls file? | wc -l` -ne 331then32 echo some error extracting files33 exit 134fi