-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
version number should be stored in a text file
- Loading branch information
Dave Pacheco
committed
Jul 16, 2015
1 parent
8d6fb9b
commit 06a14c7
Showing
7 changed files
with
86 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* CDDL HEADER START | ||
* | ||
* The contents of this file are subject to the terms of the | ||
* Common Development and Distribution License (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* | ||
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE | ||
* or http://www.opensolaris.org/os/licensing. | ||
* See the License for the specific language governing permissions | ||
* and limitations under the License. | ||
* | ||
* When distributing Covered Code, include this CDDL HEADER in each | ||
* file and include the License file at usr/src/OPENSOLARIS.LICENSE. | ||
* If applicable, add the following below this CDDL HEADER, with the | ||
* fields enclosed by brackets "[]" replaced with your own identifying | ||
* information: Portions Copyright [yyyy] [name of copyright owner] | ||
* | ||
* CDDL HEADER END | ||
*/ | ||
/* | ||
* Copyright (c) 2015, Joyent, Inc. All rights reserved. | ||
*/ | ||
|
||
/* | ||
* mdb_v8_version.h: declares version number values | ||
*/ | ||
|
||
#ifndef _MDBV8_VERSION_H | ||
#define _MDBV8_VERSION_H | ||
|
||
/* | ||
* These constants are defined in mdb_v8_version.c, which is generated as part | ||
* of the build. | ||
*/ | ||
extern int mdbv8_vers_major; | ||
extern int mdbv8_vers_minor; | ||
extern int mdbv8_vers_micro; | ||
|
||
#endif /* _MDBV8_VERSION_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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# tools/mkversion: given the contents of the "version" file on stdin, emit a C | ||
# file on stdout that defines appropriate values for the version major, minor, | ||
# and micro numbers. Lines beginning with '#' are ignored in the input. Only | ||
# the first non-ignored line will be used. | ||
# | ||
|
||
awk -F. '!/^#/{ print $1, $2, $3 }' | head -1 | while read major minor micro; do | ||
cat <<-EOF | ||
/* | ||
* This file was generated by $0 at $(date). | ||
*/ | ||
int mdbv8_vers_major = $major; | ||
int mdbv8_vers_minor = $minor; | ||
int mdbv8_vers_micro = $micro; | ||
EOF | ||
done |
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,11 @@ | ||
# | ||
# This file is processed by tools/mkversion. The value here denotes the current | ||
# version of the debugger module. Normal (non-release) builds will be tagged | ||
# with this version, plus a "dev" tag that indicates the version is not final. | ||
# For a release build, a "release" tag will be applied. While there may be many | ||
# "dev" builds with the same version, there should be only one canonical | ||
# "release" build with a given version number. | ||
# | ||
# This value is also used by the "publish" target in the build process. | ||
# | ||
0.9.0 |