userscripts/scripts/bump-version.sh

7 lines
136 B
Bash
Executable File

#!/bin/bash
script=$1
echo $script
find . -name "$script" -exec sed -i '' -e "s=\(// @version[ ]*\).*=\\1$(date -I'seconds')=g" {} \;