{
"name" : "ejdb",
- "version" : "1.1.23",
+ "version" : "1.1.24",
"config" : {
- "windownloadurl_ia32" : "http://dl.dropboxusercontent.com/u/4709222/ejdb/tcejdb-1.1.23-mingw32-i686.zip",
- "windownloadurl_x64" : "http://dl.dropboxusercontent.com/u/4709222/ejdb/tcejdb-1.1.23-mingw32-x86_64.zip"
+ "windownloadurl_ia32" : "http://dl.dropboxusercontent.com/u/4709222/ejdb/tcejdb-1.1.24-mingw32-i686.zip",
+ "windownloadurl_x64" : "http://dl.dropboxusercontent.com/u/4709222/ejdb/tcejdb-1.1.24-mingw32-x86_64.zip"
},
"main" : "node/ejdb.js",
"homepage" : "http://ejdb.org",
sed -i 's/\"version\" *\: *.*\,/"version" : \"'"$1"'\"\,/' ./package.json
sed -r -i 's/tcejdb-[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+-/tcejdb-'"$1"'-/g' ./package.json || exit $?
make clean
- ##npm publish || exit $?
+ npm publish || exit $?
exit 0;
}
exit 0;
}
+
+function _git() {
+ echo "Publishing into GIT"
+ cd ${EJDB_HOME}
+ VERSION="$1"
+ git commit -a -m"v${VERSION}" || exit $?
+ git tag "v${VERSION}" || exit $?
+ git push --tags || exit $?
+ exit 0;
+}
+
+
function tcejdb() {
TCEJDB_HOME="${EJDB_HOME}/tcejdb"
VERSION="$1"
fi
if [[ ${CMDS} =~ ^\ +$ ]]; then
- CMDS="dput w32 w64";
+ CMDS="dput w32 w64 npm git";
fi
cd ${TCEJDB_HOME}
"w64" )
(_win "w64" ${VERSION}) || exit $?
;;
+ "git" )
+ (_git ${VERSION}) || exit $?
+ ;;
* )
echo "Invalid command";
usage