summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2018-06-21 17:03:59 (EDT)
committer P. J. McDermott <pj@pehjota.net>2018-06-21 18:15:12 (EDT)
commit793381bf36f7511bf545a872173dc3c5cc8c1668 (patch)
tree726a8cc42ec15efb4f29bf568d7621e1b729879b
parent0c31dd2f25aad58fbdd3418fb1a987dace322731 (diff)
downloadpbuilder-793381bf36f7511bf545a872173dc3c5cc8c1668.zip
pbuilder-793381bf36f7511bf545a872173dc3c5cc8c1668.tar.gz
pbuilder-793381bf36f7511bf545a872173dc3c5cc8c1668.tar.bz2
.pbuilderrc: New file
-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}"