]> source.dussan.org Git - tigervnc.git/commitdiff
Updated copyright notice, fixed build string
authorBrian Hinz <bphinz@users.sourceforge.net>
Sat, 1 Sep 2012 20:54:12 +0000 (20:54 +0000)
committerBrian Hinz <bphinz@users.sourceforge.net>
Sat, 1 Sep 2012 20:54:12 +0000 (20:54 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4989 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/CMakeLists.txt
java/com/tigervnc/vncviewer/VncViewer.java

index a157226d96c54efd5e4556b8b422cd19d07d0a69..f3215945a20cec257b431276ac3291c99f9d1210 100644 (file)
@@ -1,7 +1,9 @@
 cmake_minimum_required(VERSION 2.8)
 
 project(tigervnc-java Java)
-set(VERSION 1.2.80)
+if(NOT VERSION)
+  set(VERSION 1.2.80)
+endif()
 
 find_package(Java)
 
@@ -14,10 +16,14 @@ set(CLASSPATH com/tigervnc/vncviewer)
 set(JAVA_SRCDIR ${CMAKE_CURRENT_SOURCE_DIR}/${CLASSPATH})
 set(JAVA_BINDIR ${CMAKE_CURRENT_BINARY_DIR}/${CLASSPATH})
 
+if(NOT BUILD)
+       execute_process(COMMAND "date" "+%Y%m%d" OUTPUT_VARIABLE BUILD)
+endif()
 execute_process(COMMAND "date" "+%b %d %Y" OUTPUT_VARIABLE JAVA_DATE)
 execute_process(COMMAND "date" "+%H:%M:%S" OUTPUT_VARIABLE JAVA_TIME)
 string(REGEX REPLACE "\n" "" JAVA_DATE ${JAVA_DATE})
 string(REGEX REPLACE "\n" "" JAVA_TIME ${JAVA_TIME})
+string(REGEX REPLACE "\n" "" BUILD ${BUILD})
 
 set(JAVA_CLASSNAMES
   CConn
index b35464d7245a5674e1adabf50d66f1344001cdae..8cc9fc637dd62418d984f51538cb1ec7a0aaf82f 100644 (file)
@@ -54,7 +54,7 @@ public class VncViewer extends java.applet.Applet implements Runnable
 {
   public static final String aboutText = new String("TigerVNC Java Viewer v%s (%s)%n"+
                                                     "Built on %s at %s%n"+
-                                                    "Copyright (C) 1999-2011 TigerVNC Team and many others (see README.txt)%n"+
+                                                    "Copyright (C) 1999-2012 TigerVNC Team and many others (see README.txt)%n"+
                                                     "See http://www.tigervnc.org for information on TigerVNC.");
                                            
   public static String version = null;