#! /bin/sh
# Copyright (c) 2003-2012
# Distributed Systems Software.  All rights reserved.
# $Id: mkstamp 2594 2012-10-19 17:28:49Z brachman $

if test -z "$1"; then
  echo "Usage: mkstamp <dacs-version-release>"
  if test -x conftools/printpath-sh; then
    v=`conftools/printpath-sh dacsversion`
    if test -n "$v"; then
      $v
    fi
  fi
  exit 1
fi

version="$1"

echo "#define DACS_VERSION_REVID \"\$Id: \$\""

now=`date '+%e-%h-%Y %H:%M:%S' | sed -e "s/^ *//"`
echo "#define DACS_VERSION_DATE \"Release date $now\""

echo "#define DACS_VERSION_RELEASE \"$version\""

