#!/bin/sh
# joinps - concatenate arbitrary PS files to stdout
# scruss@bigfoot.com, 4/4/01
# method taken from an article in The Acumen Journal:
#   http://www.acumentraining.com/AcumenJournal.html

while
    [ $# -gt 1 ]
do
    sed 's/^%%Page.*//' "$1"
    echo ""
    echo false 0 startjob pop % end of "$1"
    echo ""
    shift
done
sed 's/^%%Page.*//' "$1"
echo ""
echo % end of $1
