File: bump

package info (click to toggle)
leiningen-clojure 2.11.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,124 kB
  • sloc: xml: 925; sh: 776; lisp: 46; makefile: 45; java: 16
file content (13 lines) | stat: -rwxr-xr-x 341 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

CURRENT_VERSION=$1
SNAPSHOT_VERSION=$2

if [ "$CURRENT_VERSION" = "" ] || [ "$SNAPSHOT_VERSION" = "" ] ; then
   echo "Usage: bin/bump 2.9.7 2.9.8-SNAPSHOT"
   exit 1
fi

for f in bin/lein bin/lein-pkg bin/lein.bat bin/lein.ps1 project.clj leiningen-core/project.clj; do
    sed -i s/$CURRENT_VERSION/$SNAPSHOT_VERSION/ $f
done