-
Notifications
You must be signed in to change notification settings - Fork 17
/
tnm.patch
executable file
·150 lines (127 loc) · 3.29 KB
/
tnm.patch
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
#!/bin/sh
if [ ".$1" = "." ]
then
echo "Usage $0 TNM_VERSION"
exit 1
fi
TNM_VERSION="$1"
TNM_MAJMIN="`echo $TNM_VERSION | sed 's/\.[^.]*$//'`"
set -x
ed -s ./tkined/unix/configure.in << !
/^TNM_VERSION *=/s/.*/TNM_VERSION=$TNM_VERSION/
w
q
!
ed -s ./tkined/win/makefile << !
/^TNM_VERSION *=/s/.*/TNM_VERSION=$TNM_VERSION/
w
q
!
ed -s ./tnm/unix/configure.in << !
/^TNM_VERSION *=/s/.*/TNM_VERSION=$TNM_VERSION/
w
q
!
ed -s ./tnm/tests/l.smx.test << !
/exec scotty[^ ]* /s/scotty[^ ]* /scotty$TNM_VERSION /
w
q
!
ed -s ./tnm/tests/netdb.test << !
/package require Tnm /s/.*/package require Tnm $TNM_MAJMIN/
w
q
!
ed -s ./tnm/configure.ac << !
/AC_INIT(\[Tnm],/s/\[.*])$/[$TNM_VERSION])/
/^TNM_VERSION *=/s/.*/TNM_VERSION=$TNM_VERSION/
w
q
!
ed -s ./tnm/generic/tnm.h << !
/#define TNM_VERSION /s/.*/#define TNM_VERSION "$TNM_VERSION"/
w
q
!
ed -s ./tnm/library/TnmSmxProfiles.tcl << !
/package provide TnmSmxProfiles/s/.*/package provide TnmSmxProfiles $TNM_VERSION/
w
q
!
ed -s ./tnm/library/TnmMonitor.tcl << !
/package require Tnm/s/.*/package require Tnm $TNM_MAJMIN/
/package require TnmMap/s/.*/package require TnmMap $TNM_MAJMIN/
/package provide TnmMonitor/s/.*/package provide TnmMonitor $TNM_VERSION/
w
q
!
ed -s ./tnm/library/TnmEther.tcl << !
/package require Tnm/s/.*/package require Tnm $TNM_MAJMIN/
/package provide TnmEther/s/.*/package provide TnmEther $TNM_VERSION/
w
q
!
ed -s ./tnm/library/TnmSnmp.tcl << !
/package require Tnm/s/.*/package require Tnm $TNM_MAJMIN/
/package require TnmDialog/s/.*/package require TnmDialog $TNM_MAJMIN/
/package require TnmInet/s/.*/package require TnmInet $TNM_MAJMIN/
/package provide TnmSnmp/s/.*/package provide TnmSnmp $TNM_VERSION/
w
q
!
ed -s ./tnm/library/TnmDialog.tcl << !
/package require Tnm/s/.*/package require Tnm $TNM_MAJMIN/
/package provide TnmDialog/s/.*/package provide TnmDialog $TNM_VERSION/
w
q
!
ed -s ./tnm/library/TnmTerm.tcl << !
/package require Tnm/s/.*/package require Tnm $TNM_MAJMIN/
/package require TnmInet/s/.*/package require TnmInet $TNM_MAJMIN/
/package require TnmDialog/s/.*/package require TnmDialog $TNM_MAJMIN/
/package provide TnmTerm/s/.*/package provide TnmTerm $TNM_VERSION/
w
q
!
ed -s ./tnm/library/TnmInet.tcl << !
/package require Tnm/s/.*/package require Tnm $TNM_MAJMIN/
/package provide TnmInet/s/.*/package provide TnmInet $TNM_VERSION/
w
q
!
ed -s ./tnm/library/TnmIetf.tcl << !
/package require Tnm/s/.*/package require Tnm $TNM_MAJMIN/
/package provide TnmIetf/s/.*/package provide TnmIetf $TNM_VERSION/
w
q
!
ed -s ./tnm/library/TnmScriptMib.tcl << !
/package require Tnm/s/.*/package require Tnm $TNM_MAJMIN/
/package require TnmSnmp/s/.*/package require TnmSnmp $TNM_MAJMIN/
/package provide TnmScriptMib/s/.*/package provide TnmScriptMib $TNM_VERSION/
w
q
!
ed -s ./tnm/library/TnmMib.tcl << !
/package require Tnm/s/.*/package require Tnm $TNM_MAJMIN/
/package provide TnmMib/s/.*/package provide TnmMib $TNM_VERSION/
w
q
!
ed -s ./tnm/library/TnmMap.tcl << !
/package require Tnm/s/.*/package require Tnm $TNM_MAJMIN/
/package require TnmInet/s/.*/package require TnmInet $TNM_MAJMIN/
/package provide TnmMap/s/.*/package provide TnmMap $TNM_VERSION/
w
q
!
ed -s ./tnm/win/makefile << !
/^TNM_VERSION = /s/= .*/= $TNM_VERSION/
w
q
!
ed -s ./tnm/win/tnmWinPort.h << !
/#define TNMLIB /s/tnm[0-9.]*"/tnm$TNM_VERSION"/
w
q
!