Patches for Xwadtools, Udo Munk's wad tools collection.
Xwadtools can be downloaded from :

  ftp://3darchives.in-span.net/pub/idgames/source/xwadtools-20010615.tar.gz


lswad-1.9.diff:
  Against Xwadtools 20010615
  lswad:
  - Junk after first NUL in lump names is not shown anymore
  - With short listing, lump names are not padded anymore

wadflat-1.4.diff:
  Against Xwadtools 20010615
  wadflat:
  - If there was another lump in the wad named like the flat,
    wadflat would extract the wrong lump. Fixed by using
    get_lump_by_num() instead of get_lump_by_name().
  - Changed directory mode from 0755 to 0777 on the theory that
    we should not substitute for umask.
  - Accept FF_END as end label too, for compatibility with pwads
    made with DeuTex 3.
  - Accept flats with a size of 4160 (64x65) for compatibility
    with Heretic and 8192 (64x128) for compatibility with Hexen.

wadsprit-1.5.diff
  Against Xwadtools 20010615 + wadflat-1.4.diff
  wadsprit:
  - Recognise SS_START.
  - Between S_START/SS_START and S_END, ignore any spurious
    S_START or SS_START.
  - Outside S_START/SS_START and S_END, ignore any spurious
    S_END.
  - Case-insensitive lump name comparison (E.G. works with
    "ss_start").
  - Use get_lump_by_num() instead of get_lump_by_name() (safer
    and faster).

wadsprit-1.6.diff
  Against Xwadtools 20010615 + wadflat-1.4.diff + wadsprit-1.5.diff
  wadsprit:
  - New -w option to extract only some sprites.
  - Usage goes to standard output, not standard error.
  - Put options in alphabetical order.
  - Create the sprites/ directory with mode 777 and let umask do
    the rest.

wadlc-2004-01-29.diff
  Against Xwadtools 20010615
  wadlc:
  - No more arbitrary limits on the object counts.
  - Added missing include <stdlib.h>.
  - Compile large levels faster by noticing when object names
    contain the object number.


To apply all of these patches, try this :

  cd xwadtools\
  && for f in lswad-1.9.diff\
	      wadflat-1.4.diff\
	      wadsprit-1.5.diff\
	      wadsprit-1.6.diff\
	      wadlc-2004-01-29.diff
    do
      patch -p1 <$f || exit 1
    done

-- AYM 2004-01-29

      2_134  2004-01-29  README
      2_182  2001-06-24  lswad-1.9.diff
      8_278  2001-08-30  wadflat-1.4.diff
      6_041  2004-01-29  wadlc-2004-01-29.diff
      5_092  2001-10-01  wadsprit-1.5.diff
      5_850  2002-11-11  wadsprit-1.6.diff