Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 23 lines (18 sloc) 0.419 kb
#!/bin/bash
# Push to clojars
set -x
set -e
if [ ! -f project.clj ]; then
echo "error: can't find project.clj" 1>&2
exit 1
fi
project=$(grep defproject project.clj | awk '{print $2}')
version=$(egrep -o "[0-9]+\.[0-9]+\.[0-9]+(-SNAPSHOT)?" project.clj | head -1)
jar=target/$project-${version}.jar
if [ -f $jar ]; then
rm $jar
fi
lein jar
lein pom
scp pom.xml $jar clojars@clojars.org:
rm pom.xml $jar
Jump to Line
Something went wrong with that request. Please try again.