Mailinglist Archive: opensuse-packaging (214 mails)

< Previous Next >
Re: [opensuse-packaging] RPM version question
  • From: Cristian Rodríguez <crrodriguez@xxxxxxxxxxxx>
  • Date: Sat, 16 Oct 2010 22:02:13 -0300
  • Message-id: <4CBA4B15.90104@xxxxxxxxxxxx>
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.





--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups