added missing dependency in tagged type
[obnox/wireshark/wip.git] / tools / unix2dos.pl
1 #!/usr/bin/perl -w
2 #
3 # unix2dos.pl - convert UNIX line endings (\n) in DOS line endings (\r\n)
4
5 # $Id$
6 #
7 # Copyright (c) 2004, Olivier Biot
8 #
9 # Wireshark - Network traffic analyzer
10 # By Gerald Combs <gerald@wireshark.org>
11 # Copyright 1998 Gerald Combs
12 #
13 # This program is free software; you can redistribute it and/or
14 # modify it under the terms of the GNU General Public License
15 # as published by the Free Software Foundation; either version 2
16 # of the License, or (at your option) any later version.
17 #
18 # This program is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 # GNU General Public License for more details.
22 #
23 # You should have received a copy of the GNU General Public License
24 # along with this program; if not, write to the Free Software
25 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26
27 use strict;
28
29 while (<STDIN>) {
30         if($_ !~ /\r\n/) {
31                 $_ =~ s/\n/\r\n/;
32         }
33         print $_;
34 }
35 1;