1
0
Fork 0

Version splitting for configure.ac

Thanks again to Brandon Inverson for providing this patch. All changes are his
except for the comment in configure.ac and the version.js.tpl move/changes.

Copyright-paperwork-exempt: Yes
perfodd
Brandon Invergo 2013-12-22 08:48:41 -05:00 committed by Mike Gerwitz
parent 3ca4b1c40f
commit 79109304cc
4 changed files with 10 additions and 47 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
build build
node_modules node_modules
package.json package.json
lib/version.js
# generated by dist target # generated by dist target
AUTHORS AUTHORS

View File

@ -22,6 +22,13 @@ AC_INIT([ease.js], [0.2.0-dev], [bugs@easejs.org])
AC_CONFIG_AUX_DIR([tools]) AC_CONFIG_AUX_DIR([tools])
AM_INIT_AUTOMAKE([foreign]) AM_INIT_AUTOMAKE([foreign])
# provide more granular version numbers based on the above AC_INIT line
m4_define([ver_split], m4_split(m4_translit(AC_PACKAGE_VERSION, [-], [.]), [\.]))
AC_SUBST(MAJOR, m4_argn(1, ver_split))
AC_SUBST(MINOR, m4_argn(2, ver_split))
AC_SUBST(REV, m4_argn(3, ver_split))
AC_SUBST(SUFFIX, m4_argn(4, ver_split))
AC_PROG_MKDIR_P AC_PROG_MKDIR_P
# check for node, which is required for nearly every operation # check for node, which is required for nearly every operation
@ -98,5 +105,5 @@ AS_IF(test "$JAVA" -a ! "$CCJAR",
AM_CONDITIONAL(HAS_CCJAR, [test "$CCJAR"]) AM_CONDITIONAL(HAS_CCJAR, [test "$CCJAR"])
AC_CONFIG_FILES([Makefile doc/Makefile package.json]) AC_CONFIG_FILES([Makefile doc/Makefile package.json lib/version.js])
AC_OUTPUT AC_OUTPUT

View File

@ -1,45 +0,0 @@
/**
* Provides version information
*
* Copyright (C) 2011, 2012, 2013 Mike Gerwitz
*
* This file is part of ease.js.
*
* ease.js is free software: you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 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, see <http://www.gnu.org/licenses/>.
*
* @author Mike Gerwitz
*/
/*** DO NOT MODIFY; generated by verset ***/
var major = 0,
minor = 2,
rev = 0,
suffix = 'dev',
version = [ major, minor, rev, suffix ];
version.major = major;
version.minor = minor;
version.rev = rev;
version.suffix = suffix;
version.toString = function()
{
return this.join( '.' )
.replace( /\.([^.]+)$/, '-$1' )
.replace( /-$/, '' );
};
module.exports = version;

View File

@ -21,7 +21,7 @@
* @author Mike Gerwitz * @author Mike Gerwitz
*/ */
/*** DO NOT MODIFY; generated by verset ***/ /*** DO NOT MODIFY; generated by config.status ***/
var major = @MAJOR@, var major = @MAJOR@,
minor = @MINOR@, minor = @MINOR@,