~strahinja/poe

ref: v1.4.6 poe/default.h.do -rw-r--r-- 245 bytes
113f5f2bСтрахиња Радић Fix wrapping on save 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
if [ -r $1.in ]; then
	redo-ifchange $1.in version date
	read VERSION <version
	read DATE <date
	sed -e "s/%VERSION%/$VERSION/g" \
		-e "s/%DATE%/$DATE/g" <$1.in
else
	if [ -f $2.def.h ]; then
		redo-ifchange $2.def.h
		cat $2.def.h > $3
	fi
fi