Skip to content

Instantly share code, notes, and snippets.

@ifesdjeen
Created October 17, 2013 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ifesdjeen/7024102 to your computer and use it in GitHub Desktop.
Save ifesdjeen/7024102 to your computer and use it in GitHub Desktop.
If you're deploying 20 Clojure libs a day (and keep forgetting Clojars deploy syntax), you're going to love that script. Maybe there's a leiningen task for that, never tried.
#!/usr/bin/ruby
res = `lein do pom, jar`
jar = res.split("\n").last.gsub("Created ", "")
puts "Gonna deploy jar: #{jar}"
exec "scp pom.xml #{jar} clojars@clojars.org:"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment