Mailinglist Archive: opensuse-packaging (214 mails)

< Previous Next >
Re: [opensuse-packaging] RPM version question
  • From: Dave Plater <davejplater@xxxxxxxxx>
  • Date: Sun, 17 Oct 2010 09:49:14 +0200
  • Message-id: <4CBAAA7A.5020406@xxxxxxxxx>
On 10/17/2010 03:02 AM, Cristian Rodríguez wrote:
El 16/10/10 20:04, Stefan Seyfried escribió:
On Sat, 16 Oct 2010 16:09:21 +0200
Dave Plater<davejplater@xxxxxxxxx> wrote:

For what it's worth I use the last release version number plus svn
revision when I package svn snapshots ie. last release = 1.20 then an
svn snapshot from svn rev 748 will become 1.20.748 then the release
1.21
is> 1.20.748.

Fortunately the project uses git, so no revision numbers ;-)


I use this versioning scheme for projects using git:

I have a wrapper script, called "mkgitsnap"

cat ~/bin/mkgitsnap
#!/usr/bin/env bash




DATE=$(date --universal +%Y%m%d%H%M)

NAME=$1

VERSION=$2

git archive --prefix=${NAME}-${VERSION}_git${DATE}/ HEAD | xz -9 >
${NAME}-${VERSION}_git${DATE}.tar.xz

then, in your .gitconfig

[alias]
...
snap = !mkgitsnap


the in the git cloned repo, run


git snap <appname> <version> where version is the latest released
version.


Should work just fine.





Good idea, I already extract svn revisions with my wip svn snapshot
scripts, I'll adapt your idea to them.
Dave P
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups