~ubuntu-branches/ubuntu/lucid/mc/lucid

« back to all changes in this revision

Viewing changes to debian/patches/01_mc.ext.in.mime.patch

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Winnertz
  • Date: 2008-09-16 10:38:59 UTC
  • mfrom: (3.1.6 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080916103859-2uwn8w61xk5mbxxq
Tags: 2:4.6.2~git20080311-4
Corrected fix for odt2txt issue (Closes: #492019) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--- lib/mc.ext.in.orig  2006-06-22 21:05:05.000000000 +0200
2
 
+++ lib/mc.ext.in       2006-10-10 17:53:46.000000000 +0200
3
 
@@ -106,8 +106,8 @@
4
 
 
5
 
 ### Archives ###
6
 
 
7
 
-# .tgz, .tpz, .tar.gz, .tar.z, .tar.Z
8
 
-regex/\.t([gp]?z|ar\.g?[zZ])$
9
 
+# .tgz, .tpz, .tar.gz, .tar.z, .tar.Z, .ipk
10
 
+regex/\.t([gp]?z|ar\.g?[zZ])$|\.ipk$
11
 
        Open=%cd %p#utar
12
 
        View=%view{ascii} gzip -dc %f 2>/dev/null | tar tvvf -
13
 
 
14
 
@@ -132,7 +132,7 @@
15
 
 # tar
16
 
 regex/\.(tar|TAR)$
17
 
        Open=%cd %p#utar
18
 
-       View=%view{ascii} tar tvvf %f
19
 
+       View=%view{ascii} tar tvvf - < %f 
20
 
 
21
 
 # lha
22
 
 type/^LHa\ .*archive
23
 
@@ -142,7 +142,7 @@
24
 
 # arj
25
 
 regex/\.a(rj|[0-9][0-9])$
26
 
        Open=%cd %p#uarj
27
 
-       View=%view{ascii} unarj l %f
28
 
+       View=%view{ascii} arj l %f
29
 
 
30
 
 # ha
31
 
 regex/\.([Hh][Aa])$
32
 
@@ -194,7 +194,16 @@
33
 
 # deb
34
 
 regex/\.u?deb$
35
 
        Open=%cd %p#deb
36
 
-       View=%view{ascii} dpkg-deb -c %f
37
 
+       View=%view{ascii} dpkg-deb -I %f && echo && dpkg-deb -c %f
38
 
+
39
 
+# dpkg
40
 
+shell/.debd
41
 
+        Open=%cd %p#debd
42
 
+        View=%view{ascii} dpkg -s `echo %p | sed 's/\([0-9a-z.-]*\).*/\1/'`
43
 
+# apt
44
 
+shell/.deba
45
 
+        Open=%cd %p#deba
46
 
+        View=%view{ascii} apt-cache show `echo %p | sed 's/\([0-9a-z.-]*\).*/\1/'`
47
 
 
48
 
 # ISO9660
49
 
 regex/\.iso$
50
 
@@ -210,28 +219,28 @@
51
 
 
52
 
 # C
53
 
 shell/.c
54
 
-       Open=%var{EDITOR:vi} %f
55
 
+       Open=sensible-editor %f
56
 
 
57
 
 # Fortran
58
 
 shell/.f
59
 
-       Open=%var{EDITOR:vi} %f
60
 
+       Open=sensible-editor %f
61
 
        
62
 
 # Header
63
 
 regex/\.(h|hpp)$
64
 
-       Open=%var{EDITOR:vi} %f
65
 
+       Open=sensible-editor %f
66
 
 
67
 
 # Object
68
 
 shell/.o
69
 
-       #Open=%var{PAGER:more} %f
70
 
+       #Open=sensible-pager %f
71
 
        View=%view{ascii} file %f && nm %f
72
 
 
73
 
 # Asm
74
 
 shell/.s
75
 
-       Open=%var{EDITOR:vi} %f
76
 
+       Open=sensible-editor %f
77
 
 
78
 
 # C++
79
 
 regex/\.(C|cc|cpp)$
80
 
-       Open=%var{EDITOR:vi} %f
81
 
+       Open=sensible-editor %f
82
 
 
83
 
 
84
 
 ### Documentation ###
85
 
@@ -252,7 +261,7 @@
86
 
        View=%view{ascii} file %f && nm %f
87
 
 
88
 
 regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])|\.man)$
89
 
-       Open=case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff @MAN_FLAGS@ @MANDOC@ %f ;; esac | %var{PAGER:more}
90
 
+       Open=case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff @MAN_FLAGS@ @MANDOC@ %f ;; esac | sensible-pager
91
 
        View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) cat %f ;; *) nroff @MAN_FLAGS@ @MANDOC@ %f ;; esac
92
 
 
93
 
 # Troff with me macros.
94
 
@@ -262,25 +271,25 @@
95
 
        View=
96
 
 
97
 
 shell/.me
98
 
-       Open=nroff @MAN_FLAGS@ -me %f | %var{PAGER:more}
99
 
+       Open=nroff @MAN_FLAGS@ -me %f | sensible-pager
100
 
        View=%view{ascii,nroff} nroff @MAN_FLAGS@ -me %f
101
 
 
102
 
 # Troff with ms macros.
103
 
 shell/.ms
104
 
-       Open=nroff @MAN_FLAGS@ -ms %f | %var{PAGER:more}
105
 
+       Open=nroff @MAN_FLAGS@ -ms %f | sensible-pager
106
 
        View=%view{ascii,nroff} nroff @MAN_FLAGS@ -ms %f
107
 
 
108
 
 # Manual page - compressed
109
 
 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.g?[Zz]$
110
 
-       Open=case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac | %var{PAGER:more}
111
 
+       Open=case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac | sensible-pager
112
 
        View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) gzip -dc %f ;; *) gzip -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac
113
 
 
114
 
 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz$
115
 
-       Open=case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac | %var{PAGER:more}
116
 
+       Open=case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac | sensible-pager
117
 
        View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip -dc %f ;; *) bzip -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac
118
 
 
119
 
 regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz2$
120
 
-       Open=case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac | %var{PAGER:more}
121
 
+       Open=case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac | sensible-pager
122
 
        View=%view{ascii,nroff} case %d/%f in */log/*|*/logs/*) bzip2 -dc %f ;; *) bzip2 -dc %f | nroff @MAN_FLAGS@ @MANDOC@ ;; esac
123
 
 
124
 
 
125
 
@@ -290,6 +299,7 @@
126
 
        Include=image
127
 
 
128
 
 type/^JPEG
129
 
+       View=%view{ascii} identify %f; test -x /usr/bin/exif && echo && exif %f
130
 
        Include=image
131
 
 
132
 
 type/^PC\ bitmap
133
 
@@ -317,14 +327,16 @@
134
 
        Open=gimp %f
135
 
 
136
 
 shell/.xbm
137
 
-       Open=bitmap %f
138
 
+       Include=image 
139
 
+       #Open=bitmap %f
140
 
 
141
 
 shell/.xpm
142
 
        Include=image
143
 
        View=sxpm %f
144
 
 
145
 
 include/image
146
 
-       Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (gqview %f &); fi
147
 
+       Open=see %f
148
 
+       #Open=if [ "$DISPLAY" = "" ]; then zgv %f; else (gqview %f &); fi
149
 
        View=%view{ascii} identify %f
150
 
        #View=%view{ascii} asciiview %f
151
 
 
152
 
@@ -332,25 +344,30 @@
153
 
 ### Sound files ###
154
 
 
155
 
 regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD])$
156
 
-       Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms -e %f 1>/dev/null 2>&1 &); fi
157
 
+       Open=run-mailcap audio/x-wav:%f
158
 
+       #Open=if [ "$DISPLAY" = "" ]; then play %f; else (xmms -e %f 1>/dev/null 2>&1 &); fi
159
 
 
160
 
 regex/\.([mM][oO][dD]|[sS]3[mM]|[xX][mM]|[iI][tT]|[mM][tT][mM]|669|[sS][tT][mM]|[uU][lL][tT]|[fF][aA][rR])$
161
 
-       Open=mikmod %f
162
 
-       #Open=tracker %f
163
 
+       Open=run-mailcap application/x-mod:%f
164
 
+        #Open=mikmod %f
165
 
+        #Open=tracker %f
166
 
 
167
 
 regex/\.([wW][aA][wW]22)$
168
 
        Open=vplay -s 22 %f
169
 
 
170
 
 regex/\.([mM][pP]3)$
171
 
-       Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (xmms %f &); fi
172
 
-       View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p'
173
 
+       Open=run-mailcap audio/mpeg:%f
174
 
+       #Open=if [ "$DISPLAY" = "" ]; then mpg123 %f; else (xmms %f &); fi
175
 
+       View=%view{ascii} mpg123 -vtn1 %f 2>&1 | sed -n '/Title:/,/Comment:/p;/^MPEG/,/^Audio/p'
176
 
 
177
 
 regex/\.([oO][gG][gG])$
178
 
-       Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f &); fi
179
 
+       Open=run-mailcap application/x-ogg:%f &
180
 
+       #Open=if [ "$DISPLAY" = "" ]; then ogg123 %f; else (xmms %f &); fi
181
 
        View=%view{ascii} ogginfo %s
182
 
 
183
 
 regex/\.([mM][iI][dD][iI]?|[rR][mM][iI][dD]?)$
184
 
-       Open=timidity %f
185
 
+       Open=run-mailcap audio/midi:%f
186
 
+       #Open=timidity %f
187
 
 
188
 
 regex/\.([wW][mM][aA])$
189
 
        Open=mplayer -vo null %f
190
 
@@ -390,10 +407,12 @@
191
 
        Include=video
192
 
 
193
 
 regex/\.([rR][aA]?[mM])$
194
 
-       Open=(realplay %f >/dev/null 2>&1 &)
195
 
+       Open=run-mailcap audio/x-pn-realaudio:%f
196
 
+       #Open=(realplay %f >/dev/null 2>&1 &)
197
 
 
198
 
 include/video
199
 
-       Open=(mplayer %f >/dev/null 2>&1 &)
200
 
+       Open=see %f
201
 
+       #Open=(mplayer %f >/dev/null 2>&1 &)
202
 
        #Open=(gtv %f >/dev/null 2>&1 &)
203
 
        #Open=(xanim %f >/dev/null 2>&1 &)
204
 
 
205
 
@@ -402,12 +421,14 @@
206
 
 
207
 
 # Postscript
208
 
 type/^PostScript
209
 
-       Open=(gv %f &)
210
 
+       Open=run-mailcap application/postscript:%f
211
 
+       #Open=(gv %f &)
212
 
        View=%view{ascii} ps2ascii %f
213
 
 
214
 
 # PDF
215
 
 type/^PDF
216
 
-       Open=(xpdf %f &)
217
 
+       Open=run-mailcap application/pdf:%f &
218
 
+       #Open=(xpdf %f &)
219
 
        #Open=(acroread %f &)
220
 
        #Open=(ghostview %f &)
221
 
        View=%view{ascii} pdftotext %f -
222
 
@@ -417,8 +438,9 @@
223
 
 
224
 
 # html
225
 
 regex/\.([hH][tT][mM][lL]?)$
226
 
-       Open=(if test -n "@X11_WWW@" && test -n "$DISPLAY"; then (@X11_WWW@ file://%d/%p &) 1>&2; else links %f || lynx -force_html %f || ${PAGER:-more} %f; fi) 2>/dev/null
227
 
-       View=%view{ascii} lynx -dump -force_html %f
228
 
+       Open=run-mailcap text/html:%f
229
 
+       #Open=(if test -n "@X11_WWW@" && test -n "$DISPLAY"; then (@X11_WWW@ file://%d/%p &) 1>&2; else links %f || lynx -force_html %f || ${PAGER:-more} %f; fi) 2>/dev/null
230
 
+       View=%view{ascii} links -dump %f 2>/dev/null || w3m -dump %f 2>/dev/null || lynx -dump -force_html %f
231
 
 
232
 
 # StarOffice 5.2
233
 
 shell/.sdw
234
 
@@ -435,22 +457,26 @@
235
 
 
236
 
 # Microsoft Word Document
237
 
 regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
238
 
-       Open=(abiword %f >/dev/null 2>&1 &)
239
 
-       View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f
240
 
+       Open=run-mailcap application/msword:%f
241
 
+       #Open=(abiword %f >/dev/null 2>&1 &)
242
 
+       View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
243
 
 type/^Microsoft\ Word
244
 
        Open=(abiword %f >/dev/null 2>&1 &)
245
 
-       View=%view{ascii} catdoc -w %f || word2x -f text %f - || strings %f
246
 
+       View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
247
 
 
248
 
 # RTF document
249
 
 regex/\.([rR][tT][fF])$
250
 
-       Open=(abiword %f >/dev/null 2>&1 &)
251
 
+       Open=run-mailcap text/rtf:%f
252
 
+       #Open=(abiword %f >/dev/null 2>&1 &)
253
 
 
254
 
 # Microsoft Excel Worksheet
255
 
 regex/\.([xX][lL][sSwW])$
256
 
-       Open=(gnumeric %f >/dev/null 2>&1 &)
257
 
+       Open=run-mailcap application/vnd.ms-excel:%f
258
 
+       #Open=(gnumeric %f >/dev/null 2>&1 &)
259
 
        View=%view{ascii} xls2csv %f || strings %f
260
 
 type/^Microsoft\ Excel
261
 
-       Open=(gnumeric %f >/dev/null 2>&1 &)
262
 
+       Open=run-mailcap application/vnd.ms-excel:%f
263
 
+       #Open=(gnumeric %f >/dev/null 2>&1 &)
264
 
        View=%view{ascii} xls2csv %f || strings %f
265
 
 
266
 
 # Use OpenOffice.org to open any MS Office documents
267
 
@@ -463,12 +489,14 @@
268
 
 
269
 
 # DVI
270
 
 regex/\.([dD][vV][iI])$
271
 
-       Open=if [ x$DISPLAY = x ]; then dvisvga %f; else (xdvi %f &); fi
272
 
+       Open=run-mailcap application/x-dvi:%f
273
 
+       #Open=if [ x$DISPLAY = x ]; then dvisvga %f; else (xdvi %f &); fi
274
 
        View=%view{ascii} dvi2tty %f
275
 
 
276
 
 # TeX
277
 
 regex/\.([Tt][Ee][Xx])$
278
 
-       Open=%var{EDITOR:vi} %f
279
 
+       Open=sensible-editor %f
280
 
+       #Open=%var{EDITOR:vi} %f
281
 
 
282
 
 
283
 
 ### Miscellaneous ###
284
 
@@ -509,24 +537,29 @@
285
 
        
286
 
 # gzip
287
 
 type/^gzip
288
 
-       Open=gzip -dc %f | %var{PAGER:more}
289
 
+       Open=gzip -dc %f | sensible-pager
290
 
        View=%view{ascii} gzip -dc %f 2>/dev/null
291
 
 
292
 
 # bzip2
293
 
 type/^bzip2
294
 
-       Open=bzip2 -dc %f | %var{PAGER:more}
295
 
+       Open=bzip2 -dc %f | sensible-pager
296
 
        View=%view{ascii} bzip2 -dc %f 2>/dev/null
297
 
 
298
 
 # bzip
299
 
 type/^bzip
300
 
-       Open=bzip -dc %f | %var{PAGER:more}
301
 
+       Open=bzip -dc %f | sensible-pager
302
 
        View=%view{ascii} bzip -dc %f 2>/dev/null
303
 
 
304
 
 # compress
305
 
 type/^compress
306
 
-       Open=gzip -dc %f | %var{PAGER:more}
307
 
+       Open=gzip -dc %f | sensible-pager
308
 
        View=%view{ascii} gzip -dc %f 2>/dev/null
309
 
 
310
 
+### Debian additions ###
311
 
+
312
 
+# Gettext Catalogs
313
 
+shell/.mo
314
 
+       View=%view{ascii} msgunfmt %f || cat %f
315
 
 
316
 
 ### Default ###
317