version offset for a better transition from SD to GH
This commit is contained in:
parent
134511aae5
commit
ac0d84818c
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by Version2Header
|
// This file was generated by Version2Header
|
||||||
// Tue Feb 21 23:07:26 EST 2017
|
// Wed Feb 22 21:39:58 EST 2017
|
||||||
#ifndef VCS_VERSION
|
#ifndef VCS_VERSION
|
||||||
#define VCS_VERSION "2963"
|
#define VCS_VERSION "12972"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
rem Let's regemerate 'svnversion.h'
|
rem Let's regemerate 'svnversion.h'
|
||||||
rem TODO: handle std err - for example, in case svn needs upgrade
|
rem TODO: handle std err - for example, in case svn needs upgrade
|
||||||
java -jar ../java_tools/version2header.jar
|
java -jar ../java_tools/version2header.jar 10000
|
Binary file not shown.
|
@ -14,8 +14,13 @@ public class Version2Header {
|
||||||
private static final String HEADER_TAG = "VCS_VERSION";
|
private static final String HEADER_TAG = "VCS_VERSION";
|
||||||
|
|
||||||
public static void main(String[] args) throws IOException {
|
public static void main(String[] args) throws IOException {
|
||||||
|
if (args.length!=1) {
|
||||||
|
System.out.println("Version offset value is now a mandatory parameter!");
|
||||||
|
System.exit(-1);
|
||||||
|
}
|
||||||
|
int versionOffsetValue = Integer.parseInt(args[0]);
|
||||||
System.out.println("Hi, it's " + new Date());
|
System.out.println("Hi, it's " + new Date());
|
||||||
System.out.println("Working with " + NL.length() + " line ends");
|
System.out.println("Working with " + NL.length() + " line ends, offset " + versionOffsetValue);
|
||||||
Process simulatorProcess = null;
|
Process simulatorProcess = null;
|
||||||
try {
|
try {
|
||||||
System.out.println("Executing [" + COMMAND + "]");
|
System.out.println("Executing [" + COMMAND + "]");
|
||||||
|
@ -34,7 +39,7 @@ public class Version2Header {
|
||||||
String ver = line.substring(VERSION_MARKER.length());
|
String ver = line.substring(VERSION_MARKER.length());
|
||||||
System.out.println("Version [" + ver + "]");
|
System.out.println("Version [" + ver + "]");
|
||||||
int version = Integer.parseInt(ver);
|
int version = Integer.parseInt(ver);
|
||||||
writeFile(version);
|
writeFile(versionOffsetValue + version);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
System.out.println("Got " + counter + " lines of stdout");
|
System.out.println("Got " + counter + " lines of stdout");
|
||||||
|
|
Loading…
Reference in New Issue