freebsd/portsnap-hg/howto
author Tomas Zeman <tomas@functionals.cz>
Fri, 31 Dec 2021 12:25:17 +0100
changeset 41 c4f9f37e9a28
parent 19 f1c52a4d5ca3
permissions -rw-r--r--
Fossil SCM: Linking Tickets to Checkin's http://chiselapp.com/user/cutterpillow/repository/fossil-iOS/wiki?name=Cookbook#ticket-checkin-links

Howto import ports (updated by portsnap) into mercurial repo:

(assumed under user portsnap with homedir /portsnap)

  * Repository:

hg init ~/ports
hg add .hgignore #see hgignore file

  * Portsnap conf:

~/.portsnaprc #see portsnaprc

  * Initial import:

PS="portsnap -f /portsnap/.portsnaprc"
PSDIR=/portsnap/ports
$PS fetch
$PS extract
cd $PSDIR && hg addremove && hg ci ...

  * Regular updates (crontab):

PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin
PSDIR=/portsnap/ports
PS="portsnap -f /portsnap/.portsnaprc"
PSLOG=/portsnap/log/portsnap.log
13 */6  * * *   cd $PSDIR && $PS cron && $PS update && hg addremove && hg ci -m 'Update' >> $PSLOG