reitit/scripts/set-version
2017-10-29 09:31:28 +02:00

6 lines
No EOL
164 B
Bash
Executable file

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