#!/bin/sh
a=`git status -s | wc -l`
if [ $a == 0 ]; then
	# not modified after git commit
	echo text_gitcommit DB \"\(`git log -1 --format=%h\ %cd --date=format:%y%m%d`\)\\n\",0 > text_gitcommit.asm
else
	# modified after git commit
	echo text_gitcommit DB \"\(`git log -1 --format=%h`*`git log -1 --format=%cd --date=format:%y%m%d`\)\\n\",0 > text_gitcommit.asm
fi
