From: Michael Prokop Date: Wed, 26 Sep 2007 20:52:30 +0000 (+0200) Subject: Extend /etc/apt/hg-snapshot-script X-Git-Tag: 0.3.31~8 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=d3e76e83f271a5b3ba6f14159f5c6f0155a4e172 Extend /etc/apt/hg-snapshot-script --- diff --git a/etc/apt/hg-snapshot-script b/etc/apt/hg-snapshot-script index 95e9865..2ed1205 100755 --- a/etc/apt/hg-snapshot-script +++ b/etc/apt/hg-snapshot-script @@ -4,7 +4,36 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2 or any later version. -# Latest change: Mit Sep 26 22:46:32 CEST 2007 [mika] +# Latest change: Mit Sep 26 22:51:31 CEST 2007 [mika] +################################################################################ +# Basic instructions: +# ------------------- +# cd /etc +# hg init +# chmod og-rwx .hg +# +# cat > .hgignore << EOF +# syntax: regexp +# (^)*.dpkg-new +# (^)*.dpkg-old +# (^)blkid.tab(|.old) +# (^)mtab +# (^)adjtime +# # add other files if necessary, depends on your setup... +# EOF +# +# cat >> /etc/apt/apt.conf << EOF +# DPkg { +# Pre-Invoke {"cd /etc ; ./apt/hg-snapshot-script pre";}; +# Post-Invoke {"cd /etc ; ./apt/hg-snapshot-script post";}; +# } +# EOF +# +# hg add +# hg ci -m "initial checkin" +# +# See http://michael-prokop.at/blog/2007/03/14/maintain-etc-with-mercurial-on-debian/ +# for more details.... ################################################################################ set -e