[pacman-dev] Add rsync vcs support to makepkg
Plus a couple of other minor points. Qt daily snapshots are only available via rsync (and tarballs) so I added _rsyncroot and _rsyncmod awareness to makepkg. elif [ ! -z ${_rsyncroot} ] && [ ! -z ${_rsyncmod} ] ; then [ $(type -p rsync) ] || return 0 msg "$(gettext "Determining latest rsync revision...")" newpkgver=$(date -u +%Y%m%d%H) The date format is per hour so multiple updates per day are possible and the -u is UTC so the the timestamp is universal worldwide. Whilst submitting a patch I thought I'd throw in this option for consideration which is to use the pkgrel variable as the VCS version field rather than pkgver. if [ "$USE_PKGREL" != "" ]; then msg2 "$(gettext "Package release version found: %s")" "$newpkgver" pkgrel=$newpkgver else msg2 "$(gettext "Version found: %s")" "$newpkgver" pkgver=$newpkgver fi It requires a new USE_PKGREL argument (see attached diff). It makes it easier to offer packages called qt-snaphot-4.4.1-2008092301 and qt-snaphot-4.5.0-2008092301 And finally, this minor tweak ensures that a pkgver=$(date) or pkgver=$EXPORTED_GLOBAL_VAR will not be overwritten... - sed -i "s/^pkgver=[^ ]*/pkgver=$newpkgver/" ./$BUILDSCRIPT + sed -i "s/^pkgver=[^\( |\$\)]*/pkgver=$newpkgver/" ./$BUILDSCRIPT --markc
On Tue, Sep 23, 2008 at 1:17 AM, Mark Constable <markc@renta.net> wrote:
Plus a couple of other minor points. Qt daily snapshots are only available via rsync (and tarballs) so I added _rsyncroot and _rsyncmod awareness to makepkg.
Can you just submit the patch inline in diff format for us to easier comment on? Sorry its taken a while for this to get noticed, a lot of us have been pretty busy lately and aren't spending as much time on this list. -Dan
participants (2)
-
Dan McGee
-
Mark Constable