Hello everybody,

hg and svn packages do set vcs revision infos for package versions. Any
reason this does not apply to git, cvs and darcs?

Using a date string has the drawback that two revisions compiled the same day
result in packages with the same version...

A patch for git is attached. Any chance to get this merged? I could take a
look at darcs and cvs as well.
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Chris           get my mail address:    */=0;b=c[a++];)
putchar(b-1/(/*               gcc -o sig sig.c && ./sig    */b/42*2-3)*42);}
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index abfabdf..158e60c 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1834,7 +1834,7 @@ devel_check() {
 				newpkgver=$(date +%Y%m%d)
 				;;
 			git)
-				newpkgver=$(date +%Y%m%d)
+				newpkgver=$(cd ${_gitname} && git describe --tags --long | sed -e 's/-/_/g' -e 's/^v//')
 				;;
 			svn)
 				newpkgver=$(LC_ALL=C svn info $_svntrunk | sed -n 's/^Last Changed Rev: \([0-9]*\)$/\1/p')


Reply via email to