#!/bin/sh # script to untar and translate Apache tarballs on OS/390 # # the parm is the name of the *uncompressed* tar file echo "untarring and translating..." pax -ofrom=ISO8859-1,to=IBM-1047 -rvf $1 BINARIES=`pax -f $1 | egrep "\.(gif|png|jpg|jar)$"` if test "x$BINARIES" != x ; then echo "Extracting binaries without translation..." pax -rvf $1 $BINARIES fi