Mercurial > dwindows
comparison os2/svnrev.cmd @ 1166:568b37e4b167
Attempt at importing the svn revision with VAC/nmake.
The REXX script might need some more work.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 16 Sep 2011 21:00:31 +0000 |
parents | |
children | 5ff264b41985 |
comparison
equal
deleted
inserted
replaced
1165:590740c9c5c6 | 1166:568b37e4b167 |
---|---|
1 /* REXX script to get the svn revision and save it to SVN.REV. */ | |
2 "svnversion -n . | rxqueue" | |
3 /* Using PARSE PULL preserves case */ | |
4 Parse Pull sval | |
5 /* If it is a double value get the first value */ | |
6 Parse Var sval ver ':' newver 'M' 'S' | |
7 /* Remove trailing M or S from the version */ | |
8 Parse Var ver tmpver 'M' | |
9 Parse Var tmpver ver 'S' | |
10 err = LINEOUT('SVN.REV', 'VERREV=' || ver, 1) | |
11 /* Check for an error. */ | |
12 IF err \== 0 THEN DO | |
13 Bad: | |
14 SAY "ERROR:" STREAM('SVN.REV', 'D') | |
15 RETURN | |
16 END |