#!/bin/sh
# This script generates distribution names for products, and
# adds revision and version numbers that it reads from the
# 'commonentities.sgml' file.
#
# set -x
# set -v
product=$1
ventity=$2
component=$3
today=$(date '+%y%m%d')
# Finds and extracts the version number from the entity list.
version=$(grep "$ventity" ../i/common/entities.sgml | \
sed -e "s/.*\"\(.*\)\".*/\1/" )
# The SRR archive has a sub-minor version number, which would
# mess up the script on andrewgate, so that gets cut off here:
if [ ${product} = "SRR" ]; then
echo ${product}-${version:0:3}-${today}-${component}
else
echo ${product}-${version}-${today}-${component}
fiCopyright © 1995-2004 by Cogent Real-Time Systems, Inc. All rights reserved.