Ethereal-dev: Re: [Ethereal-dev] unix2dos.pl is missing

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Wed, 27 Oct 2004 12:27:20 -0700
Martijn Schipper wrote:

It seems that unix2dos.pl in the tools directory is missing in the 0.10.7 release.

Yes, it was left out of the EXTRA_DIST list in tools/Makefile.am; I've checked in a change to fix that, and attached unix2dos.pl to this message.
#!/usr/bin/perl -w
#
# unix2dos.pl - convert UNIX line endings (\n) in DOS line endings (\r\n)
# 
# $Id: unix2dos.pl 12318 2004-10-16 11:46:17Z obiot $
#
# Copyright (c) 2004, Olivier Biot
#
# Ethereal - Network traffic analyzer
# By Gerald Combs <gerald@xxxxxxxxxxxx>
# Copyright 1998 Gerald Combs
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

use strict;

while (<STDIN>) {
	$_ =~ s/\n/\r\n/;
	print $_;
}
1;