17 Oct
2010
17 Oct
'10
16:27
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. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org