From f82235032f162aae0bb08828d45c6306e60dcd29 Mon Sep 17 00:00:00 2001 From: Mathieu Clabaut Date: Fri, 21 Dec 2007 15:47:30 -0600 Subject: hg and git subrepo creation (hg is for now a copy of git) --- init.d/10restore-etckeeper | 8 -------- init.d/20restore-metadata | 10 ---------- init.d/40git-init | 6 ------ init.d/50git-ignore | 22 ---------------------- init.d/50git-perm | 3 --- init.d/50git-pre-commit-hook | 15 --------------- init.d/70git-add | 5 ----- init.d/README | 13 ------------- 8 files changed, 82 deletions(-) delete mode 100755 init.d/10restore-etckeeper delete mode 100755 init.d/20restore-metadata delete mode 100755 init.d/40git-init delete mode 100755 init.d/50git-ignore delete mode 100755 init.d/50git-perm delete mode 100755 init.d/50git-pre-commit-hook delete mode 100755 init.d/70git-add delete mode 100644 init.d/README (limited to 'init.d') diff --git a/init.d/10restore-etckeeper b/init.d/10restore-etckeeper deleted file mode 100755 index 376524c..0000000 --- a/init.d/10restore-etckeeper +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -set -e - -# Yes, this runs code from the repository. As documented, etckeeper-init -# should only be run on repositories you trust. -if [ -e .etckeeper ]; then - . ./.etckeeper -fi diff --git a/init.d/20restore-metadata b/init.d/20restore-metadata deleted file mode 100755 index 01c45e4..0000000 --- a/init.d/20restore-metadata +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -set -e - -# Note that metastore doesn't check that the .metastore file only changes -# perms of files in the current directory. It's ok to trust the .metastore -# file won't do anything shady, because, as documented, etckeeper-init -# should only be run on repositories you trust. -if [ -e .metadata ]; then - metastore --apply --mtime -fi diff --git a/init.d/40git-init b/init.d/40git-init deleted file mode 100755 index 69867c4..0000000 --- a/init.d/40git-init +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -set -e -if [ ! -e .git ]; then - git-init - echo "$(hostname) /etc repository" > .git/description -fi diff --git a/init.d/50git-ignore b/init.d/50git-ignore deleted file mode 100755 index f931592..0000000 --- a/init.d/50git-ignore +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh -set -e -if [ ! -e .gitignore ]; then - cat >.gitignore <&2 - fi -else - cat >.git/hooks/pre-commit <&2 -fi diff --git a/init.d/README b/init.d/README deleted file mode 100644 index 90aec67..0000000 --- a/init.d/README +++ /dev/null @@ -1,13 +0,0 @@ -Executable files in this directory are run to initialise the working directory -for use by etckeeper. If the working directory is not already in version -control, that includes setting up the version control, but not actually -committing anything. If the working directory is in version control, -it includes applying stored metadata to the checked out files in the -working directory. - -Please be careful to *never* overwrite existing files/directories -in the working directory (or use absolute care when doing so). If a file -you need to write already exists, check if its contents are sane, and -if not, emit a warning on stderr. - -If initialisation fails, exit nonzero and no later files will be run. -- cgit v1.2.3