Changeset 237

Show
Ignore:
Timestamp:
06/28/07 08:13:18 (1 year ago)
Author:
ajps
Message:

Switch line endings from UNIX to DOS for the "ReadMe?" files that people might want to open in Notepad on Windows.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/scripts/pkg_win

    r222 r237  
    99#   scripts/pkg_win <name of of release, e.g. angband-3.4.6> 
    1010# 
    11 mkdir $1 
    12 cd $1 
     11DIR=$1 
     12 
     13function cp_unix2dos { 
     14  # Just in case they're already DOS_format, we strip them to UNIX first. :) 
     15  awk '{ sub("\r$", ""); sub("$", "\r"); print }' $1 > $2 
     16
     17 
     18 
     19mkdir $DIR 
     20cd $DIR 
    1321 
    1422mkdir lib 
     
    3341 
    3442cp ../*.exe . 
    35 cp ../changes.txt  ../thanks.txt ../copying.txt ../readme.txt . 
     43 
     44# Copy the readmes and suchlike, converting to DOS line endings on the way 
     45cp_unix2dos ../changes.txt ./changes.txt 
     46cp_unix2dos ../thanks.txt ./thanks.txt 
     47cp_unix2dos ../copying.txt ./copying.txt 
     48cp_unix2dos ../readme.txt ./readme.txt 
    3649 
    3750cp ../lib/edit/*.txt lib/edit