diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 21 | ||||
-rwxr-xr-x | check/urxvt | 5 | ||||
-rwxr-xr-x | lint/urxvt | 2 | ||||
-rw-r--r-- | urxvt/ext/select.pl (renamed from urxvt/ext/select) | 4 |
5 files changed, 22 insertions, 11 deletions
@@ -12,3 +12,4 @@ git/gitconfig gnupg/gpg.conf man/man7/dotfiles.7df tmux/tmux.conf +urxvt/ext/select @@ -56,7 +56,7 @@ lint-sh \ lint-urxvt -.SUFFIXES: .awk .bash .sed +.SUFFIXES: .awk .bash .pl .sed NAME := Tom Ryder EMAIL := tom@sanctum.geek.nz @@ -71,7 +71,8 @@ all : bin/han \ bin/su2d \ bin/unf \ git/gitconfig \ - gnupg/gpg.conf + gnupg/gpg.conf \ + urxvt/ext/select clean distclean : rm -f \ @@ -89,7 +90,8 @@ clean distclean : gnupg/gpg.conf \ man/man7/dotfiles.7df \ mutt/muttrc \ - tmux/tmux.conf + tmux/tmux.conf \ + urxvt/ext/select git/gitconfig : git/gitconfig.m4 m4 \ @@ -126,6 +128,10 @@ tmux/tmux.conf : tmux/tmux.conf.m4 bin/shb "$<" bash > "$@" chmod +x "$@" +.pl : + bin/shb "$<" perl > "$@" + chmod +x "$@" + .sed : bin/shb "$<" sed -f > "$@" chmod +x "$@" @@ -294,9 +300,14 @@ install-terminfo : install-tmux : tmux/tmux.conf install-terminfo install -pm 0644 -- tmux/tmux.conf "$(HOME)"/.tmux.conf -install-urxvt : check-urxvt +install-urxvt : urxvt/ext/select check-urxvt install -m 0755 -d -- "$(HOME)"/.urxvt/ext - install -m 0755 -- urxvt/ext/* "$(HOME)"/.urxvt/ext + for name in urxvt/ext/* ; do \ + case $$name in \ + *.pl) ;; \ + *) install -m 0644 -- "$$name" "$(HOME)"/.urxvt/ext ;; \ + esac \ + done install-vim : install-vim-config \ install-vim-plugins \ diff --git a/check/urxvt b/check/urxvt index d27d6660..a40f8559 100755 --- a/check/urxvt +++ b/check/urxvt @@ -1,6 +1,9 @@ #!/bin/sh for perl in urxvt/ext/* ; do [ -f "$perl" ] || continue - perl -c "$perl" >/dev/null || exit + case $perl in + *.pl) ;; + *) perl -c "$perl" >/dev/null || exit ;; + esac done printf 'All Perl scripts in urxvt/ext parsed successfully.\n' @@ -1,2 +1,2 @@ #!/bin/sh -find urxvt/ext -type f -print -exec perlcritic --brutal -- {} \; +find urxvt/ext -type f ! -name '*.pl' -print -exec perlcritic --brutal -- {} \; diff --git a/urxvt/ext/select b/urxvt/ext/select.pl index b35862b2..90b13960 100644 --- a/urxvt/ext/select +++ b/urxvt/ext/select.pl @@ -1,9 +1,5 @@ -#!/usr/bin/env perl - -# # Tom Ryder's choice of selection behaviours for urxvt, butchered from included # URxvt extension scripts. -# # Force me to write this properly use strict; |