summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-04-16 22:24:33 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-04-17 15:43:02 -0700
commitb5b718a57dccc9411d9db41bede29918e207391d (patch)
tree99d5ffc2e789b88522a489af66213ec3db6fc316 /hooks
parent2751f7b221bad998ac28fe5e3d239a5b52816101 (diff)
downloaddotfiles-b5b718a57dccc9411d9db41bede29918e207391d.tar.gz
archive propellor git hook
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/git/propellor/post-checkout_01dirlocals29
1 files changed, 0 insertions, 29 deletions
diff --git a/hooks/git/propellor/post-checkout_01dirlocals b/hooks/git/propellor/post-checkout_01dirlocals
deleted file mode 100755
index 472868cf..00000000
--- a/hooks/git/propellor/post-checkout_01dirlocals
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/perl
-
-use strict;
-use warnings;
-
-use Path::Class;
-use autodie ":all";
-
-(undef, my $head, my $flag) = @ARGV;
-my $branch = `git name-rev --name-only $head`;
-chomp $branch;
-
-if ( $flag && "$branch" ne "debian" ) {
- # We create a cabal sandbox so that Emacs' haskell-mode ignores
- # stack.yaml. We don't need to use stack because Propellor's deps
- # are always installed as system packages
- unless ( -d ".cabal-sandbox" ) {
- system "cabal sandbox init";
- }
- open my $fh, ">", ".dir-locals.el";
- print $fh <<'END';
-((nil . ((indent-tabs-mode . t)
- (tab-width . 8)
- (fill-column . 80)))
- ;; Warn about spaces used for indentation:
- (haskell-mode . ((eval . (highlight-regexp "^ +")))))
-END
- close $fh;
-}