#!/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 -rvf $1 # "to" defaults to the current codepage BINS=`pax -f $1 | egrep "\.(gif|png|jpg|jar|tar)$"` if [ -n "$BINS" ] ; then echo "Extracting binaries without translation..." pax -rvf $1 $BINS fi