diff options
Diffstat (limited to 'qa/mk.pcpversion')
-rwxr-xr-x | qa/mk.pcpversion | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/qa/mk.pcpversion b/qa/mk.pcpversion new file mode 100755 index 0000000..de865cb --- /dev/null +++ b/qa/mk.pcpversion @@ -0,0 +1,15 @@ +#! /bin/sh +# +# given a dotted notation pcp version string, produce a single number +# +# Copyright (c) 1997-2002 Silicon Graphics, Inc. All Rights Reserved. +# + +VERSION=$1 +PCP_VER=`echo "$VERSION" \ + | sed \ + -e '/^[^.]*\.[^.]*$/s/$/.0/' \ + -e 's/\.\([0-9]\)$/.0\1/' \ + -e 's/\.//g'` +[ -z "$PCP_VER" ] && PCP_VER=0 +echo PCP_VER=$PCP_VER |