#!/bin/sh

# FIXME: This hack allows us to build jpackage RPMs.  We need to
# extend gjdoc to handle jpackage's javadoc requirements.
echo "This is not a javadoc implementation.  It is only a placeholder."

PLACEHOLDER_OUTPUT=""
while [ "$#" != 0 ]; do
  if [ "$1" = "-help" ]; then
    exit 0
  elif [ "$1" = "-d" ]; then
    shift
    PLACEHOLDER_OUTPUT="$1/JAVADOC.PLACEHOLDER"
  fi
  shift
done

if [ -n "$PLACEHOLDER_OUTPUT" ]; then
  exec touch $PLACEHOLDER_OUTPUT
else
  exec touch JAVADOC.PLACEHOLDER
fi
