forked from iputils/iputils
-
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.
build-sys: make version number to update at each commit
This make version number to be based on git tag. In same go get rid of SNAPSHOT.h in favour of config.h that most of developers expect to see, and make these build system generated headers to be included automatically via -include compiler option so that each file is guaranteed to get them as a first include. Signed-off-by: Sami Kerola <[email protected]>
- Loading branch information
Showing
13 changed files
with
29 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,6 @@ | |
* YOSHIFUJI Hideaki <[email protected]> | ||
*/ | ||
|
||
#include "SNAPSHOT.h" | ||
|
||
#include <stdlib.h> | ||
#include <time.h> | ||
#include <signal.h> | ||
|
@@ -1041,7 +1039,7 @@ main(int argc, char **argv) | |
source = optarg; | ||
break; | ||
case 'V': | ||
printf("arping utility, iputils-%s\n", SNAPSHOT); | ||
printf(IPUTILS_VERSION("arping")); | ||
exit(0); | ||
case 'h': | ||
case '?': | ||
|
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,2 @@ | ||
#define PACKAGE_VERSION "@VCS_TAG@" | ||
#define IPUTILS_VERSION(_prog) "%s from %s %s\n", _prog, PACKAGE_NAME, PACKAGE_VERSION |
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 |
---|---|---|
|
@@ -60,8 +60,6 @@ | |
* SUCH DAMAGE. | ||
*/ | ||
|
||
#include "SNAPSHOT.h" | ||
|
||
#include <string.h> | ||
#include <time.h> | ||
#include <malloc.h> | ||
|
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 |
---|---|---|
|
@@ -32,8 +32,6 @@ | |
* YOSHIFUJI Hideaki <[email protected]> | ||
*/ | ||
|
||
#include "SNAPSHOT.h" | ||
|
||
#if HAVE_SYS_TYPES_H | ||
# include <sys/types.h> | ||
#endif | ||
|
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 |
---|---|---|
|
@@ -32,8 +32,6 @@ | |
* YOSHIFUJI Hideaki <[email protected]> | ||
*/ | ||
|
||
#include "SNAPSHOT.h" | ||
|
||
#if HAVE_SYS_TYPES_H | ||
# include <sys/types.h> | ||
#endif | ||
|
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 |
---|---|---|
|
@@ -32,8 +32,6 @@ | |
* YOSHIFUJI Hideaki <[email protected]> | ||
*/ | ||
|
||
#include "SNAPSHOT.h" | ||
|
||
#if HAVE_SYS_TYPES_H | ||
# include <sys/types.h> | ||
#endif | ||
|
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 |
---|---|---|
|
@@ -32,8 +32,6 @@ | |
* YOSHIFUJI Hideaki <[email protected]> | ||
*/ | ||
|
||
#include "SNAPSHOT.h" | ||
|
||
#if HAVE_SYS_TYPES_H | ||
# include <sys/types.h> | ||
#endif | ||
|
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