version offset for a better transition from SD to GH

This commit is contained in:
rusefi 2017-02-22 21:40:43 -05:00
parent 134511aae5
commit ac0d84818c
4 changed files with 10 additions and 5 deletions

View File

@ -1,5 +1,5 @@
// 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
#define VCS_VERSION "2963"
#define VCS_VERSION "12972"
#endif

View File

@ -1,3 +1,3 @@
rem Let's regemerate 'svnversion.h'
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.

View File

@ -14,8 +14,13 @@ public class Version2Header {
private static final String HEADER_TAG = "VCS_VERSION";
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("Working with " + NL.length() + " line ends");
System.out.println("Working with " + NL.length() + " line ends, offset " + versionOffsetValue);
Process simulatorProcess = null;
try {
System.out.println("Executing [" + COMMAND + "]");
@ -34,7 +39,7 @@ public class Version2Header {
String ver = line.substring(VERSION_MARKER.length());
System.out.println("Version [" + ver + "]");
int version = Integer.parseInt(ver);
writeFile(version);
writeFile(versionOffsetValue + version);
}
}
System.out.println("Got " + counter + " lines of stdout");