[mICQ] fix generate .cvsupdate in cvs version
Rüdiger Kuhlmann
micq-list-CKH1bDCG6x4V at ruediger-kuhlmann.de
Fri Apr 6 13:38:01 CEST 2007
>--[Maxim Komar]--<komar at ukr.net>
> $Id:$ in my source code have date format like 2007-02-27.
How come? (I've always seen 200/02/27, and that's definately
not German's native time format...)
> Can you commit one of them?
> - | sed "s,.*\(20../../.. ..:..:..\).*,#define CVSUPDATE \"\1 UTC\"," \
> + | sed "s,.*\(20..[-/]..[-/].. ..:..:..\).*,#define CVSUPDATE \"\1 UTC\"," \
Done.
> + -e 's/.* \([^ ]\{1,\} [^ ]\{1,\}\) [^ ]\{1,\} [^ ]\{1,\} [$$].*/#define CVSUPDATE "\1 UTC"/' \
> + | sort | sed -ne 's,/,-,g' -e '$$p' > .cvsupdate
I'm not convinced that all sed implementation get { } right, as well
as the $ line address. Check Solaris.
--
If you lose your power to laugh, you lose your power to think.
More information about the mICQ-List
mailing list