On 10/17/2010 06:27 PM, Cristian Rodríguez wrote:
El 17/10/10 12:42, Boris Manojlovic escribió:
P.S. "Scriptlet" for making git snapshot is nice one ;)
I just improved it a bit, now it uses the "last commit" date as reference date and not the current time, and also sets tarball mtime accordingly.
#!/usr/bin/env bash
GIT_DATE=$(git log HEAD -n 1 --format=%cD) DATE=$(date --universal +%Y%m%d%H%M -d "${GIT_DATE}")
NAME=$1
VERSION=$2
git archive --prefix=${NAME}-${VERSION}_git${DATE}/ HEAD | xz -9 > ${NAME}-${VERSION}_git${DATE}.tar.xz touch -c -t "${DATE}" ${NAME}-${VERSION}_git${DATE}.tar.xz
hth.
So far I've an updaterg.sh and updateblen.sh for svn rosegarden4-10.06 (I'll start using svn revisions in the version after 10.06 is released for now I put the revision in the spec file under description and summary) it's more stable than the current release. Here's updaterg.sh : #!/bin/bash rm -rf /data/src/osc/rosegarden-10.06 svn export /data/src/rosegarden /data/src/osc/rosegarden-10.06 pushd /data/src/osc/ tar -acf rosegarden-10.06.tar.bz2 rosegarden-10.06 mv rosegarden-10.06.tar.bz2 /data/src/osc/home:plater/rosegarden-qt4/rosegarden-10.06.tar.bz2 popd cat /data/src/rosegarden/.svn/entries|grep -m1 -b1 dir It's tailored for my own directory structure which is /data/src is where svn, cvs, bzr and git local copies reside. Then we have /data/src/osc with my buildservice stuff and also used for working on svn export source. I have to put in a couple of options and a bit of sed to automatically update the spec file. Also would be nice to select revisions via option. Regards Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org