reitit/scripts/set-version

6 lines
164 B
Text
Raw Normal View History

#!/bin/sh
ext="sedbak$$"
find . -name project.clj -exec sed -i.$ext "s/(def VERSION \".*\")/(def VERSION \"$1\")/g" '{}' \;
find . -name "*.$ext" -exec rm '{}' \;