~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to debian/fixscripts.sh

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
# this script tries to locate all the GRASS scripts than have something
4
 
# that makes lintian complain and fix them.
5
 
 
6
 
CURDIR=$(pwd)
7
 
VERSION=$(echo $(head -2 $CURDIR/include/VERSION)|sed -e 's/ //') 
8
 
 
9
 
# silence bogus lintian complaint about interpreter-not-absolute
10
 
for SCRIPT in script_get_line \
11
 
    script_play \
12
 
    script_tools \
13
 
    script_file_tools \
14
 
    nviz2.2_script
15
 
do
16
 
  file="$CURDIR/debian/tmp/usr/lib/grass$VERSION/etc/nviz2.2/scripts/$SCRIPT"
17
 
  sed -i -e "s.!nviz.!/usr/lib/grass$VERSION/bin/nviz." "$file"
18
 
done
19
 
 
20
 
for SCRIPT in panel_label.tcl \
21
 
    panel_scale.tcl
22
 
do
23
 
  file="$CURDIR/debian/tmp/usr/lib/grass$VERSION/etc/nviz2.2/scripts/$SCRIPT"
24
 
  sed -i -e "s%!../glnviz.new/nvwish%!/usr/lib/grass$VERSION/etc/nviz2.2/glnviz/nvwish%" "$file"
25
 
done
26
 
 
27
 
# silence lintian warning script-not-executable
28
 
for x in etc/dm/tksys.tcl \
29
 
    etc/gm/animate.tcl \
30
 
    etc/gem/skeleton/post \
31
 
    etc/gem/skeleton/uninstall
32
 
do
33
 
    chmod +x $CURDIR/debian/tmp/usr/lib/grass$VERSION/$x
34
 
done
35
 
 
36
 
# silence executable-not-elf-or-script lintian warning
37
 
# most tcl scripts don't need to be executable
38
 
for x in etc/dm/cmd.tcl \
39
 
    etc/dm/d.m.tcl \
40
 
    etc/dm/grassabout.tcl \
41
 
    etc/dm/group.tcl \
42
 
    etc/dm/labels.tcl \
43
 
    etc/dm/menu.tcl \
44
 
    etc/dm/print.tcl \
45
 
    etc/dm/raster.tcl \
46
 
    etc/dm/tool1.tcl \
47
 
    etc/dm/tool2.tcl \
48
 
    etc/dm/tree.tcl \
49
 
    etc/dm/vector.tcl \
50
 
    etc/epsg_option.tcl \
51
 
    etc/gis_set.tcl \
52
 
    etc/gm/tksys.tcl \
53
 
    etc/nviz2.2/scripts/assoc.tcl \
54
 
    etc/nviz2.2/scripts/attIsosurfPopup.tcl \
55
 
    etc/nviz2.2/scripts/attPopup.tcl \
56
 
    etc/nviz2.2/scripts/colorPopup.tcl \
57
 
    etc/nviz2.2/scripts/config.tcl \
58
 
    etc/nviz2.2/scripts/cutplane_channels.tcl \
59
 
    etc/nviz2.2/scripts/extra_bindings.tcl \
60
 
    etc/nviz2.2/scripts/fileBrowser.tcl \
61
 
    etc/nviz2.2/scripts/filemapBrowser.tcl \
62
 
    etc/nviz2.2/scripts/mapBrowser.tcl \
63
 
    etc/nviz2.2/scripts/multimapBrowser.tcl \
64
 
    etc/nviz2.2/scripts/nviz_init.tcl \
65
 
    etc/nviz2.2/scripts/panelIndex \
66
 
    etc/nviz2.2/scripts/panel_animation.tcl \
67
 
    etc/nviz2.2/scripts/panel_color.tcl \
68
 
    etc/nviz2.2/scripts/panel_cutplane.tcl \
69
 
    etc/nviz2.2/scripts/panel_kanimator.tcl \
70
 
    etc/nviz2.2/scripts/panel_label.tcl \
71
 
    etc/nviz2.2/scripts/panel_lights.tcl \
72
 
    etc/nviz2.2/scripts/panel_main.tcl \
73
 
    etc/nviz2.2/scripts/panel_pos.tcl \
74
 
    etc/nviz2.2/scripts/panel_rquery.tcl \
75
 
    etc/nviz2.2/scripts/panel_scale.tcl \
76
 
    etc/nviz2.2/scripts/panel_sdiff.tcl \
77
 
    etc/nviz2.2/scripts/panel_site.tcl \
78
 
    etc/nviz2.2/scripts/panel_surf.tcl \
79
 
    etc/nviz2.2/scripts/panel_tst.tcl \
80
 
    etc/nviz2.2/scripts/panel_vect.tcl \
81
 
    etc/nviz2.2/scripts/panel_vquery.tcl \
82
 
    etc/nviz2.2/scripts/panel_vol.tcl \
83
 
    etc/nviz2.2/scripts/position_procs.tcl \
84
 
    etc/nviz2.2/scripts/queue.tcl \
85
 
    etc/nviz2.2/scripts/script_support.tcl \
86
 
    etc/nviz2.2/scripts/send_support.tcl \
87
 
    etc/nviz2.2/scripts/structlib.tcl \
88
 
    etc/nviz2.2/scripts/tclIndex \
89
 
    etc/nviz2.2/scripts/unique.tcl \
90
 
    etc/nviz2.2/scripts/widgets.tcl \
91
 
    etc/nviz2.2/scripts/wirecolorPopup.tcl \
92
 
    etc/v.digit/cats.tcl \
93
 
    etc/v.digit/settings.tcl \
94
 
    etc/v.digit/toolbox.tcl
95
 
do
96
 
    chmod -x $CURDIR/debian/tmp/usr/lib/grass$VERSION/$x
97
 
done
98