On Mon, 13 Jul 2015 at 4:17am, Michael Weise wrote: > > Thanks for all the answers, > > I wrote my own little script that extracts the output of > 'fossil status' with the help of sed and writes it to a file. > It's invoked as part of the build process: > > fossil status | sed -n 's/checkout: *\([a-zA-Z0-9]*\) \(.*\)/#ifndef > CHECKOUTVERSION\n#define CHECKOUTVERSION\n#define > CHECKOUT_VERSION_STRING "\1"\n#define CHECKOUT_TIMESTAMP_STRING > "\2"\n#endif/p' > ../checkoutVersion.h
Here's how I do it in my GNUmakefile/Makefile: --begin snippet-- version: VERSION VERSION: @fossil info | grep "^checkout" | awk '{ printf "[%s] %s %s", substr($$2, 0, 10), $$3, $$4 }' > VERSION --end snippet-- Although now that I think about it, using info here is slower than using status, so I may change that. Cheers! > > > What's the advantage of using a manifest file? > > Best regards, > Michael > _______________________________________________ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > -- Christopher M. Fuhrman cfuhr...@pobox.com _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users