[metview] 40/97: Fix executable scripts

Alastair McKinstry mckinstry at moszumanska.debian.org
Tue Sep 1 09:18:44 UTC 2015


This is an automated email from the git hooks/post-receive script.

mckinstry pushed a commit to branch master
in repository metview.

commit 7ee7dcaf32a5e2ab636c6d327d7a77673bd8c776
Author: Alastair McKinstry <mckinstry at debian.org>
Date:   Fri Jun 20 09:16:49 2014 +0100

    Fix executable scripts
---
 debian/patches/fix-scripts.patch | 52 ++++++++++++++++++++++++++++++++++++++++
 debian/patches/series            |  1 +
 debian/rules                     |  8 ++++++-
 3 files changed, 60 insertions(+), 1 deletion(-)

diff --git a/debian/patches/fix-scripts.patch b/debian/patches/fix-scripts.patch
new file mode 100644
index 0000000..15b06cf
--- /dev/null
+++ b/debian/patches/fix-scripts.patch
@@ -0,0 +1,52 @@
+Author: Alastair McKinstry <mckinstry at debian.org>
+Description: Ensure all scripts have a correct start line
+Forwarded: not-needed
+Last-Updated: 2014-06-21
+
+Index: metview-4.4.3+dfsg.1/scripts/document_macros.pl
+===================================================================
+--- metview-4.4.3+dfsg.1.orig/scripts/document_macros.pl
++++ metview-4.4.3+dfsg.1/scripts/document_macros.pl
+@@ -1,4 +1,4 @@
+-
++#!/usr/bin/perl
+ # **************************** LICENSE START ***********************************
+ #
+ # Copyright 2012 ECMWF and INPE. This software is distributed under the terms
+Index: metview-4.4.3+dfsg.1/scripts/metview_help
+===================================================================
+--- metview-4.4.3+dfsg.1.orig/scripts/metview_help
++++ metview-4.4.3+dfsg.1/scripts/metview_help
+@@ -1,4 +1,4 @@
+-
++#!/bin/sh
+ # **************************** LICENSE START ***********************************
+ #
+ # Copyright 2012 ECMWF and INPE. This software is distributed under the terms
+Index: metview-4.4.3+dfsg.1/scripts/mv_flextra_prep.mv
+===================================================================
+--- metview-4.4.3+dfsg.1.orig/scripts/mv_flextra_prep.mv
++++ metview-4.4.3+dfsg.1/scripts/mv_flextra_prep.mv
+@@ -1,3 +1,4 @@
++#!/usr/bin/metview
+ # Metview Macro
+ 
+ # **************************** LICENSE START ***********************************
+Index: metview-4.4.3+dfsg.1/scripts/mv_mars_catalog.py
+===================================================================
+--- metview-4.4.3+dfsg.1.orig/scripts/mv_mars_catalog.py
++++ metview-4.4.3+dfsg.1/scripts/mv_mars_catalog.py
+@@ -1,3 +1,4 @@
++#!/usr/bin/python
+ # Copyright 2012 ECMWF and INPE. This software is distributed under the terms
+ # of the Apache License version 2.0. In applying this license, ECMWF does not
+ # waive the privileges and immunities granted to it by virtue of its status as
+Index: metview-4.4.3+dfsg.1/scripts/mv_scm_vis.mv
+===================================================================
+--- metview-4.4.3+dfsg.1.orig/scripts/mv_scm_vis.mv
++++ metview-4.4.3+dfsg.1/scripts/mv_scm_vis.mv
+@@ -1,3 +1,4 @@
++#!/usr/bin/metview 
+ # Metview Macro
+ 
+ # **************************** LICENSE START ***********************************
diff --git a/debian/patches/series b/debian/patches/series
index 15b9b3c..561cbe9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 fix-paths.patch
+fix-scripts.patch
diff --git a/debian/rules b/debian/rules
index 02359ac..36a4178 100755
--- a/debian/rules
+++ b/debian/rules
@@ -50,8 +50,14 @@ override_dh_auto_install:
 	sed -e 's%function findCommonPath()%findCommonpath()%'  \
 		< $(MV_COMP) >  $(MV_COMP).tmp
 	mv $(MV_COMP).tmp  $(MV_COMP)
-
+	
 override_dh_fixperms:
 	dh_fixperms
 	chmod -R -x debian/metview/usr/share/metview/*
+	chmod +x debian/metview/usr/lib/metview/mv_compress
+	chmod -x debian/metview/usr/lib/metview/*.magml
+	chmod -x debian/metview/usr/lib/metview/metview_*.common
+	chmod -x debian/metview/usr/lib/metview/metview_stat
+	chmod -x debian/metview/usr/lib/metview/metview_patches
+
 	find debian/metview/usr/share/metview -type d -exec chmod 755 {} \;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/metview.git



More information about the debian-science-commits mailing list