All of lore.kernel.org
 help / color / mirror / Atom feed
From: jacmet at uclibc.org <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/scripts
Date: Tue,  1 Apr 2008 02:53:15 -0700 (PDT)	[thread overview]
Message-ID: <20080401095315.649A53C3BD@busybox.net> (raw)

Author: jacmet
Date: 2008-04-01 02:53:14 -0700 (Tue, 01 Apr 2008)
New Revision: 21606

Log:
setlocalversion: add git-svn support


Modified:
   trunk/buildroot/scripts/setlocalversion


Changeset:
Modified: trunk/buildroot/scripts/setlocalversion
===================================================================
--- trunk/buildroot/scripts/setlocalversion	2008-04-01 07:03:07 UTC (rev 21605)
+++ trunk/buildroot/scripts/setlocalversion	2008-04-01 09:53:14 UTC (rev 21606)
@@ -12,9 +12,14 @@
 if head=`git rev-parse --verify HEAD 2>/dev/null`; then
 	# Do we have an untagged version?
 	if git name-rev --tags HEAD | grep -E '^HEAD[[:space:]]+(.*~[0-9]*|undefined)$' > /dev/null; then
-	        git describe | awk -F- '{printf("-%05d-%s", $(NF-1),$(NF))}'
+	        git describe 2>/dev/null | awk -F- '{printf("-%05d-%s", $(NF-1),$(NF))}'
 	fi
 
+	# Is this git on svn?
+	if git config --get svn-remote.svn.url >/dev/null; then
+	        printf -- '-svn%s' "`git-svn find-rev $head`"
+	fi
+
 	# Are there uncommitted changes?
 	git update-index --refresh --unmerged > /dev/null
 	if git diff-index --name-only HEAD | grep -v "^scripts/package" \

             reply	other threads:[~2008-04-01  9:53 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-01  9:53 jacmet at uclibc.org [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-02-03 16:24 [Buildroot] svn commit: trunk/buildroot/scripts jacmet at uclibc.org
2009-02-02  7:19 ulf at uclibc.org
2009-02-02  7:18 ulf at uclibc.org
2009-01-25 23:09 ulf at uclibc.org
2009-01-22 23:10 ulf at uclibc.org
2009-01-22 23:05 ulf at uclibc.org
2009-01-16 22:45 ulf at uclibc.org
2009-01-15 23:17 ulf at uclibc.org
2009-01-13 18:43 ulf at uclibc.org
2009-01-12  7:45 ulf at uclibc.org
2009-01-12  7:43 ulf at uclibc.org
2009-01-11 20:37 ulf at uclibc.org
2009-01-10  0:26 ulf at uclibc.org
2009-01-11 13:23 ` Peter Korsgaard
2009-01-03 16:59 ulf at uclibc.org
2009-01-02 15:44 ulf at uclibc.org
2009-01-03  7:04 ` Hamish Moffatt
2009-01-03  8:50   ` Ulf Samuelsson
2008-12-23 17:51 wberrier at uclibc.org
2008-10-22  5:19 jacmet at uclibc.org
2008-05-01 15:21 ninevoltz at uclibc.org
2008-04-06 10:01 ulf at uclibc.org
2008-03-11 13:14 ninevoltz at uclibc.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080401095315.649A53C3BD@busybox.net \
    --to=jacmet@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.