rom2.elf
rom2.b
romsrc.s
+version.h
crctab.h
crctest
gencrctab
@perl -w check-romsrc.pl
clean:
- rm -f *.o *.elf *.s19 *.b *.a rom.tar.bz2 romsrc.s crctab.h m68hc11-gdb gencrctab crctest
+ rm -f *.o *.elf *.s19 *.b *.a rom.tar.bz2 romsrc.s crctab.h version.h m68hc11-gdb gencrctab crctest
crctest: crctest.c crctab.h
gcc -o $@ $<
romsrc.s: rom.tar.bz2 src2asm.pl
perl -w src2asm.pl < $< > $@
+main_basic.c: version.h
+
+version.h: gen-version.pl
+ ./gen-version.pl > $@
+
xmodem.c: crctab.h
crctab.h: gencrctab
--- /dev/null
+#!/usr/bin/perl -w
+
+use POSIX qw(strftime);
+
+$revision = `git describe --long`;
+$datestring = strftime "%Y%m%d", localtime;
+
+chomp $revision;
+
+
+print <<EOT;
+#ifndef _VERSION_H_
+#define _VERSION_H_
+
+/* ROM version */
+
+#define DATEBUILT_STRING "$datestring"
+#define VERSION_STRING "$revision"
+
+#endif /* _VERSION_H_ */
+EOT
+++ /dev/null
-#ifndef _VERSION_H_
-#define _VERSION_H_
-
-#include "vend.h"
-
-/* Snack machine ROM version */
-
-#define VERSION_STRING "Y 20150319"
-
-#endif /* _VERSION_H_ */
Partially done.
git tag -a ROMY
+git push --tags
+
git describe --long