1
0
Fork 0

package.json is now generated by configure script and included in distribution

perfodd
Mike Gerwitz 2013-12-22 00:20:21 -05:00
parent 465fe35831
commit e1fdc92beb
5 changed files with 4 additions and 6 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
build
node_modules
package.json
# generated by dist target
AUTHORS

View File

@ -2,7 +2,7 @@
# see README
SUBDIRS = doc
EXTRA_DIST = AUTHORS NEWS ChangeLog
EXTRA_DIST = AUTHORS NEWS ChangeLog package.json
path_build = $(top_builddir)/build
path_tools = $(top_builddir)/tools

View File

@ -98,5 +98,5 @@ AS_IF(test "$JAVA" -a ! "$CCJAR",
AM_CONDITIONAL(HAS_CCJAR, [test "$CCJAR"])
AC_CONFIG_FILES([Makefile doc/Makefile])
AC_CONFIG_FILES([Makefile doc/Makefile package.json])
AC_OUTPUT

View File

@ -1,7 +1,7 @@
{
"name": "easejs",
"description": "A Classical Object-Oriented Framework for JavaScript",
"version": "0.2.0-dev",
"version": "@VERSION@",
"author": "Mike Gerwitz <mike@mikegerwitz.com> (http://mikegerwitz.com)",
"homepage": "http://easejs.org",

View File

@ -39,8 +39,5 @@ cat version.js.tpl | sed "
s/@SUFFIX@/${suffix#-}/;
" > ../lib/version.js
# update package.json for npm
sed -i 's/"version":.*/"version": "'$version'",/' ../package.json
# update configure script by replacing the second argument of AC_INIT
sed -i '/^AC_INIT/s/, \[[^]]\+\]/, ['$version']/' ../configure.ac