cake 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/bin/cake +34 -0
  2. metadata +56 -0
@@ -0,0 +1,34 @@
1
+ #!/usr/bin/env bash
2
+ # Save your fork, there's cake!"
3
+
4
+ function bake {
5
+ java -cp "$CLASSPATH" clojure.main -e "(use 'cake)(-main)" /dev/null $@
6
+ }
7
+
8
+ FILE="$(readlink $0)"
9
+ FILE=${FILE:-$0}
10
+ CAKE="$(dirname "$(dirname "$FILE")")"
11
+ CLASSPATH="$CAKE/src/:$CAKE/lib/*"
12
+
13
+ JAR="http://github.com/downloads/ninjudd/cake-standalone/cake-standalone.jar"
14
+
15
+ if [ "$(which curl)" == "" ]; then
16
+ GET="wget -qO"
17
+ else
18
+ GET="curl -Lso"
19
+ fi
20
+
21
+ # Bootstap cake deps
22
+ if [ ! -e "$CAKE/.deps" ]; then
23
+ echo "fetching cake dependencies..."
24
+ rm -rf $CAKE/lib
25
+ mkdir -p $CAKE/lib
26
+ $GET $CAKE/lib/$(basename $JAR) $JAR || exit
27
+ touch "$CAKE/.deps"
28
+ fi
29
+
30
+ if [ "project.clj" -nt "pom.xml" ] && [ "$1" != "deps" ]; then
31
+ bake deps
32
+ fi
33
+
34
+ bake $@
metadata ADDED
@@ -0,0 +1,56 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cake
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Justin Balthrop
8
+ - Lance Bradley
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2010-06-02 00:00:00 -07:00
14
+ default_executable: cake
15
+ dependencies: []
16
+
17
+ description: Gem for installing cake.
18
+ email: code@justinbalthrop.com
19
+ executables:
20
+ - cake
21
+ extensions: []
22
+
23
+ extra_rdoc_files: []
24
+
25
+ files:
26
+ - bin/cake
27
+ has_rdoc: true
28
+ homepage: http://github.com/ninjudd/cake
29
+ licenses: []
30
+
31
+ post_install_message:
32
+ rdoc_options: []
33
+
34
+ require_paths:
35
+ - lib
36
+ required_ruby_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: "0"
41
+ version:
42
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: "0"
47
+ version:
48
+ requirements: []
49
+
50
+ rubyforge_project:
51
+ rubygems_version: 1.3.5
52
+ signing_key:
53
+ specification_version: 3
54
+ summary: Save your fork, there's cake!
55
+ test_files: []
56
+