summaryrefslogtreecommitdiff
path: root/make_patchnun.sh
blob: 2306fa892b7c214fa23fecc072f67d1478dcaed3 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

Existing=`cat .patchnum 2>/dev/null`
Current=`git describe`

if [ "$Existing" != "$Current" ]; then
	echo "Updating .patchnum"
	echo $Current > .patchnum
else
	echo "Reusing .patchnum" 
fi