Permalink
Browse files

Makefiles and Rakefiles nearly set up for rubygems packaging.

  • Loading branch information...
burke committed Aug 30, 2012
1 parent 12c2f90 commit cc5edff69e53f58a3842d48eef6bf710d6821cbe
View
@@ -16,5 +16,9 @@ spec/reports
test/tmp
test/version_tmp
tmp
-cmd/zeus/zeus
*.log
+build/*
+man/build/*
+rubygem/man/*
+rubygem/build/*
+zeusversion/zeusversion.go
View
@@ -2,16 +2,28 @@ MAKEFLAGS = -s
default: darwin
-all: linux-386 linux-amd64 darwin
+all: linux-386 linux-amd64 darwin manpages gem
-linux-386:
+manpages:
+ cd man; /usr/bin/env rake
+
+gem:
+ cd rubygem; /usr/bin/env rake
+
+linux-386: goversion
cd cmd/zeus; CGO_ENABLED=0 GOOS=linux GOARCH=386 $(MAKE) -o zeus-linux-386
-linux-amd64:
+linux-amd64: goversion
cd cmd/zeus; CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(MAKE) -o zeus-linux-amd64
-darwin:
+darwin: goversion
cd cmd/zeus; CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 $(MAKE) -o zeus-darwin
+goversion:
+ cd zeusversion ; /usr/bin/env ruby ./genversion.rb
+
clean:
cd cmd/zeus; $(MAKE) clean
+ cd man; rake clean
+ cd rubygem ; rake clean
+ rm -rf zeusversion
View
@@ -0,0 +1 @@
+0.10.0.dev
View
@@ -6,6 +6,7 @@ import (
"github.com/burke/zeus/zeusmaster"
"github.com/burke/zeus/zeusclient"
+ "github.com/burke/zeus/zeusversion"
)
var color bool = true
@@ -27,6 +28,8 @@ func main () {
execManPage("zeus")
} else if args[0] == "help" {
commandSpecificHelp(args)
+ } else if args[0] == "version" || args[0] == "--version" {
+ println("Zeus version " + zeusversion.VERSION)
} else if args[0] == "start" {
zeusmaster.Run(color)
} else if args[0] == "init" {
View
@@ -1,49 +0,0 @@
-.\" generated with Ronn/v0.7.3
-.\" http://github.com/rtomayko/ronn/tree/0.7.3
-.
-.TH "ZEUS" "1" "August 2012" "" ""
-.
-.SH "NAME"
-\fBzeus\fR \- preload development tasks for slow codebases
-.
-.SH "SYNOPSIS"
-\fBzeus\fR [\-\-no\-color] COMMAND [ARGS]
-.
-.SH "DESCRIPTION"
-Zeus makes working with large codebases much less painful\.
-.
-.P
-It is primarily targeted at ruby and other dynamic languages, where application boot time can be tens of seconds, but it can be made to work for nearly any language\.
-.
-.P
-Zeus lets you define common tasks, and preloads all of them in the background\. When you ask to run them, zeus transparently connects your terminal to the already\-running process in under 100ms\.
-.
-.P
-This lets you, for example, run unit tests in dozens of milliseconds, rather than dozens of seconds\.
-.
-.P
-Zeus also optionally monitors all files loaded by your application, and restarts as much of it as is necessary when a dependency changes\.
-.
-.P
-To use zeus with a Ruby on Rails application, install the gem \'\fBzeus\-rails\fR\'\.
-.
-.SH "OPTIONS"
-.
-.TP
-\fB\-\-no\-color\fR
-Prints all output without color
-.
-.SH "BUILTIN COMMANDS"
-.
-.TP
-zeus start(1) \fIzeus\-start\.1\.html\fR
-Start a zeus server in the current directory using \fBzeus\.json\fR
-.
-.TP
-zeus init(1) \fIzeus\-init\.1\.html\fR
-Generate a template zeus\.json
-.
-.TP
-\fBzeus commands(1)\fR
-List the commands defined by zeus\.json
-
View
@@ -1,13 +0,0 @@
-.\" generated with Ronn/v0.7.3
-.\" http://github.com/rtomayko/ronn/tree/0.7.3
-.
-.TH "ZEUS\-INIT" "1" "August 2012" "" ""
-.
-.SH "NAME"
-\fBzeus\-init\fR \- Generate a template zeus\.json
-.
-.SH "SYNOPSIS"
-\fBzeus init\fR
-.
-.SH "DESCRIPTION"
-Not yet implemented\.
View
@@ -1,16 +0,0 @@
-ZEUS-INIT(1) ZEUS-INIT(1)
-
-
-
-NAME
- zeus-init - Generate a template zeus.json
-
-SYNOPSIS
- zeus init
-
-DESCRIPTION
- Not yet implemented.
-
-
-
- August 2012 ZEUS-INIT(1)
View
@@ -1,16 +0,0 @@
-.\" generated with Ronn/v0.7.3
-.\" http://github.com/rtomayko/ronn/tree/0.7.3
-.
-.TH "ZEUS\-START" "1" "August 2012" "" ""
-.
-.SH "NAME"
-\fBzeus\-start\fR \- Start a zeus server
-.
-.SH "SYNOPSIS"
-\fBzeus start\fR
-.
-.SH "DESCRIPTION"
-Start a server\.
-.
-.P
-TODO: Better docs\.
View
@@ -1,18 +0,0 @@
-ZEUS-START(1) ZEUS-START(1)
-
-
-
-NAME
- zeus-start - Start a zeus server
-
-SYNOPSIS
- zeus start
-
-DESCRIPTION
- Start a server.
-
- TODO: Better docs.
-
-
-
- August 2012 ZEUS-START(1)
View
@@ -1,48 +0,0 @@
-ZEUS(1) ZEUS(1)
-
-
-
-NAME
- zeus - preload development tasks for slow codebases
-
-SYNOPSIS
- zeus [--no-color] COMMAND [ARGS]
-
-DESCRIPTION
- Zeus makes working with large codebases much less painful.
-
- It is primarily targeted at ruby and other dynamic languages, where
- application boot time can be tens of seconds, but it can be made to
- work for nearly any language.
-
- Zeus lets you define common tasks, and preloads all of them in the
- background. When you ask to run them, zeus transparently connects your
- terminal to the already-running process in under 100ms.
-
- This lets you, for example, run unit tests in dozens of milliseconds,
- rather than dozens of seconds.
-
- Zeus also optionally monitors all files loaded by your application, and
- restarts as much of it as is necessary when a dependency changes.
-
- To use zeus with a Ruby on Rails application, install the gem
- 'zeus-rails'.
-
-OPTIONS
- --no-color
- Prints all output without color
-
-BUILTIN COMMANDS
- zeus start(1) zeus-start.1.html
- Start a zeus server in the current directory using zeus.json
-
- zeus init(1) zeus-init.1.html
- Generate a template zeus.json
-
- zeus commands(1)
- List the commands defined by zeus.json
-
-
-
-
- August 2012 ZEUS(1)
View
@@ -1,13 +1,17 @@
require 'ronn'
+task default: 'man:gen'
+
+task clean: 'man:clean'
+
namespace :man do
- directory "man-comp"
+ directory "build"
- Dir["man/*.ronn"].each do |ronn|
+ Dir["src/*.ronn"].each do |ronn|
basename = File.basename(ronn, ".ronn")
- roff = "man-comp/#{basename}"
+ roff = "build/#{basename}"
- file roff => ["man-comp", ronn] do
+ file roff => ["build", ronn] do
sh "#{Gem.ruby} -S ronn --roff --pipe #{ronn} > #{roff}"
end
@@ -19,11 +23,11 @@ namespace :man do
end
desc "Build the man pages"
- task :build => "man:build_all_pages"
+ task :gen => "man:build_all_pages"
desc "Clean up from the built man pages"
task :clean do
- rm_rf "man-comp"
+ rm_rf "build"
end
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -0,0 +1,19 @@
+*.gem
+*.rbc
+.bundle
+.config
+.yardoc
+Gemfile.lock
+InstalledFiles
+_yardoc
+coverage
+doc/
+lib/bundler/man
+pkg
+rdoc
+spec/reports
+test/tmp
+test/version_tmp
+tmp
+lib/zeus/version.rb
+MANIFEST
View
@@ -0,0 +1,4 @@
+source 'https://rubygems.org'
+
+# Specify your gem's dependencies in zeus.gemspec
+gemspec
View
@@ -0,0 +1,22 @@
+Copyright (c) 2012 Burke Libbey
+
+MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -0,0 +1,29 @@
+# Zeus
+
+TODO: Write a gem description
+
+## Installation
+
+Add this line to your application's Gemfile:
+
+ gem 'zeus'
+
+And then execute:
+
+ $ bundle
+
+Or install it yourself as:
+
+ $ gem install zeus
+
+## Usage
+
+TODO: Write usage instructions here
+
+## Contributing
+
+1. Fork it
+2. Create your feature branch (`git checkout -b my-new-feature`)
+3. Commit your changes (`git commit -am 'Added some feature'`)
+4. Push to the branch (`git push origin my-new-feature`)
+5. Create new Pull Request
Oops, something went wrong.

0 comments on commit cc5edff

Please sign in to comment.