{"thread":{"id":"684","subject":"[PATCH 1/3] - Add GIT Version number","startedAt":"2005-05-21T18:32:09Z","lastAt":"2005-05-21T18:32:09Z","messageCount":1,"participants":["Sean"],"isPatch":true,"patchVersion":1,"patchTotal":3},"messages":[{"id":"3706","messageId":"2230.10.10.10.24.1116700329.squirrel@linux1","threadId":"684","inReplyTo":null,"subject":"[PATCH 1/3] - Add GIT Version number","fromName":"Sean","fromEmail":"seanlkml@sympatico.ca","sentAt":"2005-05-21T18:32:09Z","receivedAt":"2005-05-21T18:32:09Z","isPatch":true,"sender":{"key":"seanlkml@sympatico.ca","avatar":"https://gravatar.com/avatar/f92923f54fc08c401fc59b71829d4b89e9b8087fbba45ff87c82e6a83aee02ae?d=mp&s=160"},"body":"\nAdd a version number to the GIT Makefile; lifted from the Linux kernel\nsource.  Once set, the version number will be reported by the \"--version\"\noption on git commands that are converted to argp argument processing.\n\nThe version number was arbitrarily set to 0.5.0 as a starting point, but\nobviously you can change it as you see fit.\n\nSigned-off-by: Sean Estabrooks <seanlkml@sympatico.ca>\n\n\nIndex: Makefile\n===================================================================\n--- 58741c69570705801db4b785681790d636475695/Makefile  (mode:100644)\n+++ uncommitted/Makefile  (mode:100644)\n@@ -7,8 +7,16 @@\n # BREAK YOUR LOCAL DIFFS! show-diff and anything using it will likely randomly\n # break unless your underlying filesystem supports those sub-second times\n # (my ext3 doesn't).\n+#\n+VERSION = 0\n+PATCHLEVEL = 5\n+SUBLEVEL = 0\n+EXTRAVERSION =\n+\n+RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)\n+\n COPTS=-O2\n-CFLAGS=-g $(COPTS) -Wall\n+CFLAGS=-g $(COPTS) -Wall '-DVERSION=\"$(RELEASE)\"'\n \n prefix=$(HOME)\n bin=$(prefix)/bin\n"}]}