Permalink
Browse files

Port Cakefile to Makefile

  • Loading branch information...
1 parent c084e35 commit b5d295f2cf7d99f857eba9fe5b6cdee2bfdff81b @mynyml committed Sep 18, 2011
Showing with 15 additions and 26 deletions.
  1. +0 −23 Cakefile
  2. +14 −2 Makefile
  3. +1 −1 doc/man/pathname.1
View
@@ -1,23 +0,0 @@
-
-shell = (cmd) ->
- require('child_process').exec cmd, (err, stdout, stderr) ->
- throw err if err?
- console.log(stdout) if stdout? and stdout isnt ""
- console.error(stderr) if stderr? and stderr isnt ""
-
-task 'docs', "Compile man pages", ->
- shell 'mkdir -p doc/man'
- shell 'ronn --pipe --roff --date=`date +%Y-%m-%d` --manual=Pathname --organization="Martin Aumont (mynyml)" doc/pathname.md > doc/man/pathname.1'
-
-task 'build', "Compile source", ->
- shell 'coffee -o lib/ -cb src/pathname.coffee'
-
-task 'install', "Install package locally", ->
- invoke 'docs'
- invoke 'build'
- shell 'npm install'
-
-task 'publish', "Build, install and publish package", ->
- invoke 'install'
- shell 'npm publish'
-
View
@@ -1,6 +1,18 @@
-.PHONY: all test
+.PHONY: all test docs install
-all: test
+all : test
+
+test :
node test/pathname-test.js
+docs :
+ mkdir -p doc/man
+ ronn --pipe --roff --date=`date +%Y-%m-%d` --manual=Pathname --organization="Martin Aumont (mynyml)" doc/pathname.md > doc/man/pathname.1
+
+install : docs
+ npm install
+
+publish : install
+ npm publish
+
View
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
-.TH "PATHNAME" "" "June 2011" "Martin Aumont (mynyml)" "Pathname"
+.TH "PATHNAME" "" "September 2011" "Martin Aumont (mynyml)" "Pathname"
OOP wrapper for \fBfs\fR, \fBpath\fR and \fBStat\fR functions\. This document describes the api\. See README\.md for overview and usage\.
.
.SH "NOTES"

0 comments on commit b5d295f

Please sign in to comment.