File fontforge-version.patch of Package fontforge

Index: fontforge-20190801/fontforge/start.c
===================================================================
--- fontforge-20190801.orig/fontforge/start.c	2019-08-21 13:44:15.537289287 +0200
+++ fontforge-20190801/fontforge/start.c	2019-08-21 13:44:39.253433054 +0200
@@ -108,8 +108,6 @@ return;
 
 void doversion(const char *source_version_str) {
     if ( source_version_str!=NULL )
-	printf( "fontforge %s\n", source_version_str );
-    printf( "build date: %s\n",
-	    FONTFORGE_MODTIME_STR );
+	printf( "libfontforge %s\n", source_version_str );
 exit(0);
 }
Index: fontforge-20190801/fontforgeexe/startnoui.c
===================================================================
--- fontforge-20190801.orig/fontforgeexe/startnoui.c	2019-08-21 13:44:15.541289311 +0200
+++ fontforge-20190801/fontforgeexe/startnoui.c	2019-08-21 13:45:22.769696849 +0200
@@ -128,7 +128,7 @@ int fontforge_main( int argc, char **arg
 	else if ( strcmp(pt,"-help")==0 )
 	    doscripthelp();
 	else if ( strcmp(pt,"-version")==0 || strcmp(pt,"-v")==0 || strcmp(pt,"-V")==0 )
-	    doversion(FONTFORGE_VERSION);
+	    doversion(source_version_str);
     }
 #  if defined(_NO_PYTHON)
     ProcessNativeScript(argc, argv,stdin);
openSUSE Build Service is sponsored by