Files
dvdisaster/scripts/time-stamper.bash
2009-11-21 16:29:02 +09:00

8 lines
184 B
Bash
Executable File

#!/usr/bin/env bash
build=$(grep BUILD $1 | cut -d\ -f3)
build=$((build+1))
echo "#define BUILD $build" >$1
date=$(date +"%d.%m.%y (%A, %H:%M)")
echo "#define BDATE \"$date\"" >>$1