Package: metview / 5.3.0-2

fix-scripts.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
Author: Alastair McKinstry <mckinstry@debian.org>
Description: Ensure all scripts have a correct start line
 and paths are correct in Metview
Forwarded: not-needed
Last-Updated: 2016-01-11

Index: metview-5.1.0/scripts/document_macros.pl
===================================================================
--- metview-5.1.0.orig/scripts/document_macros.pl
+++ metview-5.1.0/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-5.1.0/scripts/metview_help
===================================================================
--- metview-5.1.0.orig/scripts/metview_help
+++ metview-5.1.0/scripts/metview_help
@@ -1,4 +1,4 @@
-
+#!/bin/sh
 # **************************** LICENSE START ***********************************
 #
 # Copyright 2014 ECMWF and INPE. This software is distributed under the terms
Index: metview-5.1.0/scripts/mv_flextra_prep.mv
===================================================================
--- metview-5.1.0.orig/scripts/mv_flextra_prep.mv
+++ metview-5.1.0/scripts/mv_flextra_prep.mv
@@ -1,3 +1,4 @@
+#!/usr/bin/metview
 # Metview Macro
 
 # **************************** LICENSE START ***********************************
Index: metview-5.1.0/scripts/mv_mars_catalog.py
===================================================================
--- metview-5.1.0.orig/scripts/mv_mars_catalog.py
+++ metview-5.1.0/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-5.1.0/scripts/mv_scm_vis.mv
===================================================================
--- metview-5.1.0.orig/scripts/mv_scm_vis.mv
+++ metview-5.1.0/scripts/mv_scm_vis.mv
@@ -1,3 +1,4 @@
+#!/usr/bin/metview 
 # Metview Macro
 
 # **************************** LICENSE START ***********************************
Index: metview-5.1.0/scripts/mv_vapor_prep.mv
===================================================================
--- metview-5.1.0.orig/scripts/mv_vapor_prep.mv
+++ metview-5.1.0/scripts/mv_vapor_prep.mv
@@ -1,3 +1,4 @@
+#!/usr/bin/magml
 # Metview Macro
 
 #  **************************** LICENSE START ***********************************
@@ -1020,4 +1021,4 @@ function listToString(lst)
   
   return s
   
-end listToString 
\ No newline at end of file
+end listToString 
Index: metview-5.1.0/scripts/metview_base.in
===================================================================
--- metview-5.1.0.orig/scripts/metview_base.in
+++ metview-5.1.0/scripts/metview_base.in
@@ -17,13 +17,14 @@ set -ea
 # THIS FILE IS GENERATED BY cmake on @TODAYS_DATE@
 #
 WMO_SITE_NR=@SITE_WMO_CODE@
+METVIEW_BIN=/usr/lib/@DEB_HOST_MULTIARCH@/metview
 ##QT_DIR_LIB=/usr/local/apps/qt/4.6.2-64/lib
 PATH=@NETCDF_BIN@:@ODB_API_BIN_DIR@:${PATH}
 INSTALLDIR=@CMAKE_INSTALL_PREFIX@
 METVIEW_SCRIPT=@METVIEW_SCRIPT@
 MV_MARS_ACCESS=@MARS_ACCESS@
 MARS_HOME=@MARS_HOME@
-METVIEW_DIR_DEV=@CMAKE_BINARY_DIR@
+METVIEW_DIR_DEV=/usr
 METVIEW_TITLE_PROD="Production @EXTRA_TITLE@"
 METVIEW_TITLE_DEV="Development @EXTRA_TITLE@"
 MV_ENVIRON=@MV_ENVIRON@