#!/bin/sh # # Copyright (c) 2014, Juniper Networks, Inc. # All rights reserved. # This SOFTWARE is licensed under the LICENSE provided in the # ../Copyright file. By downloading, installing, copying, or otherwise # using the SOFTWARE, you agree to be bound by the terms of that # LICENSE. # Phil Shafer, July 2014 # BASE=@XO_SHAREDIR@ CMD=cat DONE= while [ -z "$DONE" -a ! -z "$1" ]; do case "$1" in -b|--base) shift; BASE="$1"; shift; ;; -c|--command) shift; CMD="$1"; shift; ;; -f|--file) shift; FILE="$1"; shift; exec > "$FILE"; ;; *) DONE=1; ;; esac done echo "\n
\n" echo '' echo '' echo '' echo '' echo '' echo '' echo '' echo "\n\n" $CMD echo "\n\n" exit 0