Now that we're under arch control I was wondering about XLIB/XWEM
version strings.
Here is my suggestion, taken from my Eicq project...
In the Eicq Makefile:
eicq-version.el:
echo ";;; Automatically generated file -- DO NOT EDIT OR DELETE" > $@
echo ";;;###autoload" >> $@
echo "(defconst eicq-version" >> $@
if [[ -d "./{arch}" && -x `which tla 2>/dev/null` ]]; then \
printf ' "%s"' `tla logs -f|tail -n1` >> $@; \
else \
echo -n ' "$(VER)"' >> $@; \
fi
echo ")" >> $@
echo "(provide 'eicq-version)" >> $@
It creates a eicq-version.el file at build time from running some tla
commands. If tla isn't available it uses a hard-coded value from a
Makefile variable ($VER in this case).
M-x eicq-version RET
=> Eicq: steve@xxxxxxxxxxxxxx/eicq--main--0.6--patch-14
Evgeny has his own branch of Eicq so if he built and then ran M-x
eicq-verson RET, he'd get...
Eicq: lg@xxxxxxxxxxxxxx/eicq--lg--0.6--patch-2
Evgeny, can I go ahead and set this up for XLIB/XWEM, or do you have
something else in mind?
I'd like to see this in before we let Norbert loose on releasing XE
packages for us. :-)
--
|---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---|
| In space, |
| No one can hear you rip a stinky |
|---------------------------------------<steve@xxxxxxxx>---|
pgpb3E1Sg1ZUh.pgp
Description: PGP signature
|