Anki/helpers/rename-with-buildhash
2020-01-04 07:53:20 +10:00

9 lines
179 B
Bash
Executable file

#!/bin/bash
# add buildhash to output files
top=$(dirname $0)/..
ver=$(cat $top/meta/version)
hash=$(cat $top/meta/buildhash)
rename "s/-${ver}-/-${ver}+${hash}-/" $top/dist/*