summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore.d/pbuilder1
-rw-r--r--.pbuilderrc18
2 files changed, 19 insertions, 0 deletions
diff --git a/.gitignore.d/pbuilder b/.gitignore.d/pbuilder
index eeae02b..e140f66 100644
--- a/.gitignore.d/pbuilder
+++ b/.gitignore.d/pbuilder
@@ -4,6 +4,7 @@
# Include relevant files
!/.gitignore.d/
!/.gitignore.d/pbuilder
+!/.pbuilderrc
# Exclude swap and backup files
*.s[a-w]?
diff --git a/.pbuilderrc b/.pbuilderrc
new file mode 100644
index 0000000..1ac5ca2
--- /dev/null
+++ b/.pbuilderrc
@@ -0,0 +1,18 @@
+case "${DIST}" in
+ 'robur' | 'dwyn' | 'awen' | 'taranis' | 'slaine' | 'dagda' | \
+ 'brigantia' | 'toutatis' | 'belenos' | 'flidas' | 'etiona')
+ VENDOR='trisquel'
+ ;;
+ '')
+ printf 'Error: DIST not set\n'
+ exit 1
+ ;;
+ *)
+ printf 'Error: Unsupported distribution "%s"\n' "${DIST}"
+ exit 1
+ ;;
+esac
+
+. "${HOME}/.pbuilderrc.d/${VENDOR}"
+
+HOOKDIR="${HOME}/.pbuilder/hooks/${VENDOR}"