Commit 372c7c499cf0186d1cdcf4ad6c378a429dc073bd

Stefan Reinauer 2006-10-14T20:42:30

fix license printing git-svn-id: svn://coreboot.org/openbios/fcode-utils@94 f158a5a8-5612-0410-a976-696ce0be7e32

diff --git a/detok/detok.c b/detok/detok.c
index 041012a..2d7e669 100644
--- a/detok/detok.c
+++ b/detok/detok.c
@@ -7,7 +7,8 @@
  *  This program is part of a free implementation of the IEEE 1275-1994 
  *  Standard for Boot (Initialization Configuration) Firmware.
  *
- *  Copyright (C) 2001-2005 Stefan Reinauer, <stepan@openbios.org>
+ *  Copyright (C) 2001-2006 Stefan Reinauer, <stepan@openbios.org>
+ *  Copyright (C) 2006 coresystems GmbH <info@coresystems.de>
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -44,8 +45,10 @@
 #include "stream.h"
 #include "addfcodes.h"
 
-#define DETOK_VERSION "0.6.1"
+#define DETOK_VERSION "1.0.0"
 
+#define CORE_COPYR   "(C) Copyright 2001-2006 Stefan Reinauer.\n" \
+		     "(C) Copyright 2006 coresystems GmbH <info@coresystems.de>"
 #define IBM_COPYR    "(C) Copyright 2005 IBM Corporation.  All Rights Reserved."
 
 bool verbose = FALSE ;
@@ -62,18 +65,16 @@ static void print_copyright(bool is_error)
 	char buffr[512];
 
 	sprintf( buffr,
-		"Welcome to the OpenBIOS detokenizer v%s\ndetok Copyright"
-		"(c) 2001-2005 by Stefan Reinauer.\nWritten by Stefan "
-		"Reinauer, <stepan@openbios.org>\n" "This program is "
-		"free software; you may redistribute it under the terms of\n"
-		"the GNU General Public License.  This program has absolutely"
-					" no warranty.\n\n" ,DETOK_VERSION);
+		"Welcome to detok - OpenBIOS detokenizer v" DETOK_VERSION "\n"
+                CORE_COPYR "\n" IBM_COPYR "\n"
+		"Written by Stefan Reinauer, <stepan@openbios.org>\n" 
+		"This program is free software; you may redistribute it "
+		"under the terms of\nthe GNU General Public License v2. This "
+		"program has absolutely no warranty.\n\n" );
 
 	pfunct = ( is_error ? (vfunct)printf : printremark );
 
         (*pfunct) ( buffr );
-
-        (*pfunct) ( IBM_COPYR "\n" );
 }
 
 static void usage(char *name)
diff --git a/toke/toke.c b/toke/toke.c
index 367cd1a..fdd8d8b 100644
--- a/toke/toke.c
+++ b/toke/toke.c
@@ -102,7 +102,7 @@ static void print_copyright(void)
 	printf( "Welcome to toke - OpenBIOS tokenizer v" TOKE_VERSION "\n"
 		CORE_COPYR "\n" IBM_COPYR "\n"
 		"This program is free software; you may redistribute it "
-		"under the terms of\nthe GNU General Public License. This "
+		"under the terms of\nthe GNU General Public License v2. This "
 		"program has absolutely no warranty.\n\n");
 #ifdef DEVEL
         /*  Temporary hack during development... */