From b5b718a57dccc9411d9db41bede29918e207391d Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 16 Apr 2022 22:24:33 -0700 Subject: archive propellor git hook --- hooks/git/propellor/post-checkout_01dirlocals | 29 --------------------------- 1 file changed, 29 deletions(-) delete mode 100755 hooks/git/propellor/post-checkout_01dirlocals (limited to 'hooks') 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; -} -- cgit v1.2.3