Extend /etc/apt/hg-snapshot-script
authorMichael Prokop <mika@grml.org>
Wed, 26 Sep 2007 20:52:30 +0000 (22:52 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 26 Sep 2007 20:52:30 +0000 (22:52 +0200)
etc/apt/hg-snapshot-script

index 95e9865..2ed1205 100755 (executable)
@@ -4,7 +4,36 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # 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