Permalink
Browse files

Release 1.1.1; add newline to build.clj and set "approximate" perms.

  • Loading branch information...
1 parent 86ca6ab commit 715549c2561e0be66d816a0704a19712e921e39b @technomancy committed Jun 7, 2010
Showing with 14 additions and 3 deletions.
  1. +8 −0 README
  2. 0 pkg/bin/heyo
  3. +1 −1 project.clj
  4. +5 −2 src/leiningen/release.clj
View
@@ -18,6 +18,14 @@ which build produced it.
Add [lein-release "1.1.0"] to your project's :dev-dependencies.
+## Known Issues
+
+Due to absurd limitations in the Java file API, Unix permissions
+inside the tarball are an approximation[1]. Executable files will be
+given permissions of 0755, while other files will be 0644.
+
+[1] - to phrase it charitably.
+
## License
Licensed under the EPL; the same license as Clojure.
View
0 pkg/bin/heyo 100644 → 100755
No changes.
View
@@ -1,4 +1,4 @@
-(defproject lein-release "1.1.0"
+(defproject lein-release "1.1.1"
:description "Create a release tarball of your Leiningen projects."
:dev-dependencies [[swank-clojure "1.2.1"]
[org.apache.maven/maven-ant-tasks "2.0.10"]
@@ -14,6 +14,9 @@
(when-not (.isDirectory f)
(let [entry (doto (TarEntry. f)
(.setName (entry-name release-name f)))]
+ (when (.canExecute f)
+ ;; No way to expose unix perms? you've got to be kidding me, java!
+ (.setMode entry 0755))
(.putNextEntry tar entry)
(.write tar (to-byte-array f))
(.closeEntry tar))))
@@ -23,8 +26,8 @@
(let [build-file (file (:root project) "pkg" "build.clj")]
(.deleteOnExit build-file)
(spit build-file
- (pr-str {:build-id (System/getenv "BUILD_ID")
- :build-tag (System/getenv "BUILD_TAG")})))))
+ (str {:build-id (System/getenv "BUILD_ID")
+ :build-tag (System/getenv "BUILD_TAG")} "\n")))))
(defn release [project]
(add-build-info project)

0 comments on commit 715549c

Please sign in to comment.