X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fapt%2Fhg-snapshot-script;h=682c60c594d9d9bd47a800a7500e6d1847a4c46e;hb=74b9ce969c7dc0ec4495fccc9f38f6ca7cd9cae6;hp=95e986508ba3a61440d706bfdc03f219103c4cd6;hpb=55466f63b5d5c8b28ea1400a434eae4ee7dc67eb;p=grml-etc-core.git diff --git a/etc/apt/hg-snapshot-script b/etc/apt/hg-snapshot-script index 95e9865..682c60c 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] +################################################################################ +# Basic instructions: +# ------------------- +# cd /etc +# hg init +# chmod og-rwx .hg +# +# cat > .hgignore << EOF +# syntax: regexp +# (^)*.dpkg-new +# (^)*.dpkg-old +# (^)blkid.tab(|.old) +# (^)mtab +# (^)adjtime +# \..*.swp +# # 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