From 372ed2763feb778253fb02a16991a49f988d6f0b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 12 Feb 2014 10:44:21 +0100 Subject: [PATCH] Introduce common/hooks to implement hooks at specified phases. xbps-src will soon move some stuff to the common hooks directory. --- common/hooks/README | 27 +++++++++++++++++++++++++++ common/hooks/post-build/.empty | 0 common/hooks/post-configure/.empty | 0 common/hooks/post-extract/.empty | 0 common/hooks/post-fetch/.empty | 0 common/hooks/post-install/.empty | 0 common/hooks/post-pkg/.empty | 0 common/hooks/pre-build/.empty | 0 common/hooks/pre-configure/.empty | 0 common/hooks/pre-extract/.empty | 0 common/hooks/pre-fetch/.empty | 0 common/hooks/pre-install/.empty | 0 common/hooks/pre-pkg/.empty | 0 13 files changed, 27 insertions(+) create mode 100644 common/hooks/README create mode 100644 common/hooks/post-build/.empty create mode 100644 common/hooks/post-configure/.empty create mode 100644 common/hooks/post-extract/.empty create mode 100644 common/hooks/post-fetch/.empty create mode 100644 common/hooks/post-install/.empty create mode 100644 common/hooks/post-pkg/.empty create mode 100644 common/hooks/pre-build/.empty create mode 100644 common/hooks/pre-configure/.empty create mode 100644 common/hooks/pre-extract/.empty create mode 100644 common/hooks/pre-fetch/.empty create mode 100644 common/hooks/pre-install/.empty create mode 100644 common/hooks/pre-pkg/.empty diff --git a/common/hooks/README b/common/hooks/README new file mode 100644 index 0000000000..5a3dfc648b --- /dev/null +++ b/common/hooks/README @@ -0,0 +1,27 @@ +HOOKS +===== + +This directory contains shell hooks that are processed after or before the +specified phase. The shell hooks are simply shell snippets (must not be +executable nor contain a shebang) that are processed lexically by xbps-src. +Only files with the `.sh` extension are processed. + +The following directories are used to set the order in which the hooks +should be processed by xbps-src: + + * pre-fetch (before running fetch phase) + * post-fetch (after running fetch phase) + * pre-extract (before running extract phase) + * post-extract (after running extract phase) + * pre-configure (before running configure phase) + * post-configure (after running configure phase) + * pre-build (before running build phase) + * post-build (after running build phase) + * pre-install (before running install phase) + * post-install (after running install phase) + * pre-pkg (before running pkg phase) + * post-pkg (after running pkg phase) + +NOTES +~~~~~ +* Symlinks can be created (relative) to make a hook available in multiple phases. diff --git a/common/hooks/post-build/.empty b/common/hooks/post-build/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/hooks/post-configure/.empty b/common/hooks/post-configure/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/hooks/post-extract/.empty b/common/hooks/post-extract/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/hooks/post-fetch/.empty b/common/hooks/post-fetch/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/hooks/post-install/.empty b/common/hooks/post-install/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/hooks/post-pkg/.empty b/common/hooks/post-pkg/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/hooks/pre-build/.empty b/common/hooks/pre-build/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/hooks/pre-configure/.empty b/common/hooks/pre-configure/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/hooks/pre-extract/.empty b/common/hooks/pre-extract/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/hooks/pre-fetch/.empty b/common/hooks/pre-fetch/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/hooks/pre-install/.empty b/common/hooks/pre-install/.empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/hooks/pre-pkg/.empty b/common/hooks/pre-pkg/.empty new file mode 100644 index 0000000000..e69de29bb2