3 # Simple packaging file for the Windows port. Only really useful when
4 # cross-compiling, or using Cygwin. Originally by Robert Ruehlmann.
6 # Requires you have UPX (http://upx.sf.net/) installed.
8 # Use in the root directory of the game, like so:
9 # scripts/pkg_win <name of of release, e.g. angband-3.4.6>
13 function 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
39 touch lib
/apex
/delete.me lib
/bone
/delete.me lib
/data
/delete.me \
40 lib
/info
/delete.me lib
/user
/delete.me lib
/save
/delete.me
44 # Copy the readmes and suchlike, converting to DOS line endings on the way
45 cp_unix2dos ..
/changes.txt .
/changes.txt
46 cp_unix2dos ..
/thanks.txt .
/thanks.txt
47 cp_unix2dos ..
/copying.txt .
/copying.txt
48 cp_unix2dos ..
/readme.txt .
/readme.txt
49 cp_unix2dos ..
/faq.txt .
/faq.txt
51 cp ..
/lib
/edit
/*.txt lib
/edit
52 cp ..
/lib
/file
/*.txt lib
/file
54 cp ..
/lib
/help
/*.txt lib
/help
55 cp ..
/lib
/help
/*.hlp lib
/help
57 cp ..
/lib
/pref
/*.prf lib
/pref
59 cp ..
/lib
/xtra
/font
/*.fon lib
/xtra
/font
60 cp_unix2dos ..
/lib
/xtra
/font
/copying.txt lib
/xtra
/font
/copying.txt
62 cp ..
/lib
/xtra
/graf
/8x8.bmp lib
/xtra
/graf
63 cp ..
/lib
/xtra
/graf
/16x16.bmp lib
/xtra
/graf
64 cp ..
/lib
/xtra
/graf
/32x32.bmp lib
/xtra
/graf
65 cp ..
/lib
/xtra
/graf
/mask.bmp lib
/xtra
/graf
67 cp ..
/lib
/xtra
/sound
/sound.cfg lib
/xtra
/sound
68 cp ..
/lib
/xtra
/sound
/*.wav lib
/xtra
/sound