From 0f1b03c932eddbfcf9f51f483fea29607142ef42 Mon Sep 17 00:00:00 2001 From: Hypermedia Isobar Date: Wed, 23 Apr 2014 13:01:38 +0200 Subject: [PATCH] Update README.md Fixed markdown syntax a bit and updated README with additional information. --- README.md | 75 ++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 63 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 5e4dcae..30d98a1 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,15 @@ tiny-node nodejs extension for tinycorelinux. +Built successfully on `CorePlus-4.7.3.iso` and `Core-5.3.iso`. + + First time setup -================ -Built successfully on CorePlus-4.7.3.iso -tcz extensions: +---------------- + +Load tcz extensions and clone git repositories: + +```sh tce-load -i -w git tce-load -i -w curl tce-load -i -w expat2 @@ -20,33 +25,79 @@ tce-load -i -w openssl-1.0.0-dev.tcz tce-load -i -w squashfs-tools-4.x.tcz git clone https://github.com/joyent/node.git src +``` + +To build specific version from git repository, checkout it's branch first. For example, to switch source to the 0.10.26 version: + +```sh +cd src +git checkout -b v0.10.26 origin/v0.10.26-release +cd .. +``` + +Build node (version number just sets it, and does not really switch to build specific version from git repository, you have to do it manually): + +```sh cd tiny-node -sudo ./make v0.8.18 +sudo ./make v0.10.26 +``` + +Find out where `/etc/sysconfig/tcedir` links to and create `/opt/.tce_dir` text file with path found in previous link (with a carrage return at the end). Here it was pointing to `/mnt/sda1/tce/`. + +```sh +readlink /etc/sysconfig/tcedir > /opt/.tce_dir +``` + +Download and load tcz tools: -#find out where /etc/sysconfig/tcedir links to -#create a file /opt/.tce_dir text file with path found in previous link (with a carrage return at the end). -/mnt/sda1/tce/ +```sh wget http://tcztools.googlecode.com/hg/tcztools.tcz -cP "$(cat /opt/.tce_dir)/optional" tce-load -i tcztools +``` +Create nodejs and nodejs-doc packages: + +```sh sudo ./package +``` + +Finally, test by rebooting and then loading nodejs modules: -#to test reboot and then +```sh tce-load -i nodejs tce-load -i nodejs-doc +``` + +Standard tests..." -#standard tests.... +```sh $ man node $ node process.version +process.exit(); $ npm $ npm install sqlite3 +``` + + +Rebuild +------- + +After a new node version is released, follow these steps: -## Rebuild -After a new node version is released, follow these steps +```sh tce-load -i tcztools cd tiny-node sudo ./make v0.8.18 sudo ./package -sudo ./submit +``` + + +Submit extension +---------------- +Rebuild and then: + +```sh +sudo ./submit +```