~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/tools/to_dos

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh -e
2
 
#Tag 1538
3
 
# $Id: to_dos 2 2002-10-12 11:37:38Z hans $
4
 
#
5
 
# convert a UNIX ASCII file to a DOS ASCII file by appending ^M at the
6
 
# end of each line and ^Z at the end of the file
7
 
 
8
 
TMPFILE=/tmp/to_dos$$
9
 
 
10
 
if [ $# -gt 2 ]
11
 
then
12
 
        echo "usage: to_dos [<unix_file> [<dos_file>]]"
13
 
        exit 1
14
 
fi
15
 
 
16
 
 
17
 
if [ $# -gt 0 ]
18
 
then
19
 
        nawk '{printf("%s\r\n", $0);}' "$1" > $TMPFILE
20
 
else
21
 
        nawk '{printf("%s\r\n", $0);}' > $TMPFILE
22
 
fi
23
 
 
24
 
# Stick on the EOF character
25
 
echo '\c' >> $TMPFILE
26
 
 
27
 
if [ $# -eq 2 ]
28
 
then
29
 
        mv -f $TMPFILE "$2"
30
 
else
31
 
        cat $TMPFILE
32
 
        rm $TMPFILE
33
 
fi