3
# this script tries to locate all the GRASS scripts than have something
4
# that makes lintian complain and fix them.
7
VERSION=$(echo $(head -2 $CURDIR/include/VERSION)|sed -e 's/ //')
9
# silence bogus lintian complaint about interpreter-not-absolute
10
for SCRIPT in script_get_line \
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"
20
for SCRIPT in panel_label.tcl \
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"
27
# silence lintian warning script-not-executable
28
for x in etc/dm/tksys.tcl \
30
etc/gem/skeleton/post \
31
etc/gem/skeleton/uninstall
33
chmod +x $CURDIR/debian/tmp/usr/lib/grass$VERSION/$x
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 \
40
etc/dm/grassabout.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
96
chmod -x $CURDIR/debian/tmp/usr/lib/grass$VERSION/$x