#!/bin/sh

# this script gets the revision number of a subversion repository and creates a source file containing a spectranet module ident string including that revision number

svn up # update working copy

IDENTTEXT="skeleton module" # name portion of ident string. " rev. n" will be appended where n is the svn revision

STRIDENT="$IDENTTEXT rev. `svn info .|grep -m 1 Rev|cut -d " " -f 2`" # add revision info

echo -e ".globl STR_ident \n.data\nSTR_ident: defb \"$STRIDENT\",0" > ver.asm