Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Bit of a general tidy up - moved the version into

one place.
  • Loading branch information...
commit 5e946112bbc07b07ea894b4ab0707a09371eb611 1 parent 59f1917
Dougal Matthews authored
4  AUTHORS
... ...
@@ -1 +1,3 @@
1  
-Dougal Matthews
  1
+Dougal Matthews
  2
+
  3
+And https://github.com/d0ugal/locache/contributors
19  Makefile
... ...
@@ -0,0 +1,19 @@
  1
+.PHONY : clean build-min docs
  2
+
  3
+VERSION = $(shell cat version.txt)
  4
+
  5
+build: | clean build-min docs
  6
+
  7
+build-min:
  8
+	@echo "Creating minified version."
  9
+	@mkdir -p ./build
  10
+	@echo "Marking version ${VERSION}"
  11
+	@cat locache.js | sed 's/VERSION-PLACEHOLDER/${VERSION}/' > ./build/locache.js
  12
+	@jsmin < ./build/locache.js > ./build/locache.min.js
  13
+
  14
+docs:
  15
+	@echo "Creating docs"
  16
+	@docco ./build/locache.js
  17
+
  18
+clean:
  19
+	@rm -rf ./build
4  locache.js
... ...
@@ -1,6 +1,6 @@
1 1
 /*jshint asi:true */
2 2
 
3  
-//      locache 0.1.0
  3
+//      locache VERSION-PLACEHOLDER
4 4
 //
5 5
 //      (c) 2012 Dougal Matthews
6 6
 //      locache may be freely distributed under the MIT licence.
@@ -29,7 +29,7 @@
29 29
 
30 30
     // Current version of locache. Keep this in sync with the version
31 31
     // at the top of this file.
32  
-    locache.VERSION = "0.1.0"
  32
+    locache.VERSION = "VERSION-PLACEHOLDER"
33 33
 
34 34
     // Boolean value that determines if they browser supports localStorage or
35 35
     // not. This is based on the Modernizr implementation that can be found
1  version.txt
... ...
@@ -0,0 +1 @@
  1
+0.2.0pre

0 notes on commit 5e94611

Please sign in to comment.
Something went wrong with that request. Please try again.