forked from steveicarus/iverilog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify the version stamp in the version_*.h header files.
Try to put all the version stamps into common version_base.h and version_stamp.h header files. All the source programs then get their version from these header files. Also handle the version stamps in the man pages by using the version_*.h header file contents to edit the version strings in the man page title bar markers.
- Loading branch information
1 parent
f07577d
commit 966e29d
Showing
22 changed files
with
177 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
/* | ||
* Copyright (c) 2009 Stephen Williams ([email protected]) | ||
* | ||
* This source code is free software; you can redistribute it | ||
* and/or modify it in source code form under the terms of the GNU | ||
* General Public License as published by the Free Software | ||
* Foundation; either version 2 of the License, or (at your option) | ||
* any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
*/ | ||
|
||
# include "version_base.h" | ||
# include "version_tag.h" | ||
# include <stdio.h> | ||
# include <string.h> | ||
|
||
static void run_string(const char*txt) | ||
{ | ||
const char*cp = txt; | ||
while (*cp) { | ||
if (cp[0] == '%' && cp[1] != 0) { | ||
switch (cp[1]) { | ||
case 'M': | ||
fprintf(stdout, "%u", VERSION_MAJOR1); | ||
break; | ||
case 'm': | ||
fprintf(stdout, "%u", VERSION_MAJOR2); | ||
break; | ||
case 'n': | ||
fprintf(stdout, "%u", VERSION_MINOR); | ||
break; | ||
case 'E': | ||
fprintf(stdout, "%s", VERSION_EXTRA); | ||
break; | ||
case 'T': | ||
fprintf(stdout, "%s", VERSION_TAG); | ||
break; | ||
case '%': | ||
putc('%', stdout); | ||
break; | ||
default: | ||
break; | ||
} | ||
cp += 2; | ||
|
||
} else if (cp[0] == '\\' && cp[1] != 0) { | ||
switch (cp[1]) { | ||
case 'n': | ||
putc('\n', stdout); | ||
break; | ||
default: | ||
putc(cp[1], stdout); | ||
break; | ||
} | ||
cp += 2; | ||
|
||
} else { | ||
putc(cp[0], stdout); | ||
cp += 1; | ||
} | ||
} | ||
} | ||
|
||
int main(int argc, char*argv[]) | ||
{ | ||
int idx; | ||
|
||
if (argc == 1) { | ||
printf("%s\n", VERSION); | ||
return 0; | ||
} | ||
|
||
run_string(argv[1]); | ||
for (idx = 2 ; idx < argc ; idx += 1) { | ||
printf(" "); | ||
run_string(argv[idx]); | ||
} | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef VERSION | ||
/* | ||
* Edit this definition in version_base.in to define the base version | ||
* number for the compiled result. | ||
*/ | ||
# define VERSION_MAJOR1 0 | ||
# define VERSION_MAJOR2 10 | ||
# define VERSION_MINOR 0 | ||
# define VERSION_EXTRA "(devel)" | ||
|
||
/* This is a concatenation of MAJOR1.MAJOR2 that is used by | ||
vams_simparam.c to make a double value. */ | ||
# define VERSION_MAJOR 0.10 | ||
|
||
# define VERSION_STRINGIFY(x) #x | ||
# define VERSION_STR(a,b,extra) VERSION_STRINGIFY(a.b) " " extra | ||
|
||
#define VERSION VERSION_STR(VERSION_MAJOR,VERSION_MINOR,VERSION_EXTRA) | ||
#endif |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.