1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
Version taken as
1:$(cat VERSION)
The debianized sources are tracked in fossil, of course.
Brief “cheat sheet” of relevant fossil commands.
## FOR NEW UPSTREAM RELEASE
# fetch & merge new upstream release
uscan
# or if that doesn't work because upstream hasn't done what they promise, download manually and
mk-origtargz ../fossil-xxx.tar.gz
EPOCH=1
VER=xxx
DEBVER=1
fossil clean -x -v
fossil pull https://www.fossil-scm.org
ID=fossil-commit-id # find via: fossil timeline -t ci -n 400 | more
# then search for the tag "version-xxx"
fossil merge version-${VER}
fossil commit -m "merge version-${VER}"
debchange --distribution unstable --newversion=${EPOCH}:${VER}-${DEBVER} New upstream version
fossil commit -m 'update debian/changelog'
# BUILDING
dpkg-checkbuilddeps
# Build binary package:
env DEB_RULES_REQUIRES_ROOT=no debian/rules binary
lintian ../fossil*.d??
# Build source + binary upload:
dpkg-buildpackage -i.fslckout -i_FOSSIL_
lintian
# Build source + binary upload using a chroot:
pdebuild --pbuilder cowbuilder --debbuildopts "-i.fslckout -i_FOSSIL_"
sudo mv --no-clobber /var/cache/pbuilder/result/fossil* ../
lintian ../fossil*.d??
# Build source-only upload:
dpkg-buildpackage -i.fslckout -i_FOSSIL_ --build=source --no-check-builddeps
lintian ../fossil*.d??
# tag debian release
fossil tag add debian_${EPOCH}:${VER}-${DEBVER} debian
# push/pull to/from debian repository (modify URL if necessary)
fossil sync ssh://people.debian.org/~bap/public_html/fossil.fsl
## TO START DEVELOPMENT
# create local repository by cloning mine
# (Would have made a repo on chiselapp.com but couldn't get it to
# work for me on a repo of this size. But this was a while ago...)
wget https://people.debian.org/~bap/fossil.fsl
# make a working checkout
sudo apt install fossil
mkdir fossil
cd fossil
fossil open ../fossil.fsl
fossil co debian
fossil user password ${USER} ${PWD}
fossil set manifest on # needed as of approx ver 2010.11.11.133638
## MISC
# pull/view upstream development
fossil pull https://www.fossil-scm.org/
fossil timeline -t ci -n 40
# create upstream tarball (not needed if using upstream release tarball)
fossil co trunk
tar --exclude .fslckout --exclude _FOSSIL_ -C .. -zcf fossil_${VER}.orig.tar.gz fossil
-- Barak A. Pearlmutter <bap@debian.org>, Thu, 1 May 2025 14:46:11 +0100
|