#! /bin/sh

#
# $Header: /home/gene/src/critters/RCS/nullc,v 5.1 2003/11/13 02:25:51 gene Exp gene $
#
# Null compiler.  Copies a shell script source file to a
# destination file, making some text symbol substitutions
# and making the result executable.
#

rc=0

if test $# -ne 2
then
    echo Usage: nullc SRC DST
    exit 2
fi

SRC=$1
DST=$2

if ./subcp $SRC $DST
then
    if chmod 755 $DST
    then
        :
    else
        echo nullc: chmod error
        rc=1
    fi
else
    echo nullc: subcp error
    rc=1
fi
exit $rc

# --- end of file ---
