[Commits] [SCM] clawsker branch, master, updated. 1.3.1-1-g15769b6

mones at claws-mail.org mones at claws-mail.org
Fri Jan 4 17:45:26 CET 2019


The branch, master has been updated
       via  15769b63268dded8db720d65d76be8ebb671f442 (commit)
      from  83827f6b6e65a563a22caa87718832c54fb1dfd5 (commit)

Summary of changes:
 Makefile |    6 +++++-
 clawsker |    3 ++-
 2 files changed, 7 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 15769b63268dded8db720d65d76be8ebb671f442
Author: Ricardo Mones <ricardo at mones.org>
Date:   Fri Jan 4 17:42:01 2019 +0100

    Better hashbang when perl is not in /usr/bin
    
    Thanks H.Merijn Brand for suggesting this!

diff --git a/Makefile b/Makefile
index 9a807b5..98edc9b 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,11 @@ all: build
 
 build: ${NAME}.1
 	-mkdir build
-	sed -e "s, at PREFIX@,${PREFIX},;s, at LIBDIR@,${LIBDIR},;s, at VERSION@,${VERSION},;s, at DATADIR@,${DATADIR}," < ${NAME} > build/${NAME}
+	perl -MConfig -p -e'1..1 and s/.*/$$Config{startperl}/;' \
+		-e's,\@PREFIX\@,${PREFIX},;' \
+		-e's,\@LIBDIR\@,${LIBDIR},;' \
+		-e's,\@VERSION\@,${VERSION},;' \
+		-e's,\@DATADIR\@,${DATADIR},' ${NAME} > build/${NAME}
 	cp -p $< build/$<
 	${MAKE} -C po build
 
diff --git a/clawsker b/clawsker
index 7ccb942..210f284 100755
--- a/clawsker
+++ b/clawsker
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/bin/perl
 #
 # Clawsker :: A Claws Mail Tweaker
 # Copyright 2007-2018 Ricardo Mones <ricardo at mones.org>
@@ -14,6 +14,7 @@
 package Clawsker;
 use 5.010_000;
 use strict;
+use warnings;
 use utf8;
 use version 0.77;
 use Glib qw(TRUE FALSE);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Hidden preferences editor for Claws Mail


More information about the Commits mailing list