File: convert-info-files-to-unix.sh

package info (click to toggle)
texlive-doc 2012.20120611-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 250,664 kB
  • sloc: xml: 18,901; perl: 13,380; makefile: 931; lisp: 394; sh: 313; awk: 205; java: 159; sed: 4
file content (19 lines) | stat: -rw-r--r-- 366 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
#
# convert-info-files-to-unix.sh
#
# info files in texlive are with DOS lineendings. Fix this here
#
# $Id: convert-info-files-to-unix.sh 5047 2012-02-17 06:41:24Z preining $
# Norbert Preining, 2005
# GPL
set -e
shopt -s nullglob

for f in debian/*.info ; do
    for i in `cat $f` ; do
        sed -e 's/\r$//' $i > $i.new
	mv $i.new $i
    done
done