cvs commit: fptools/ghc/utils/unlit unlit.c

Sigbjorn Finne sof@glass.cse.ogi.edu
Tue, 22 May 2001 12:07:40 -0700


sof         2001/05/22 12:07:39 PDT

  Modified files:
    ghc/utils/unlit      unlit.c 
  Log:
  Added the -h (header) option; it prefixes the unlit'ed output with a pair
  of line pragmas, e.g.,
  
    foo$ unlit -h foo.lhs foo.lhs - | head -3
    # 1 "foo.lhs"
    {-# LINE 1 "foo.lhs" #-}
    module Foo where
    foo$
  
  Using -h saves the main user of 'unlit', GHC, from having to do the
  prepending of line pragmas via shellular magic. (=> GHC is able to
  drop the dependency on there being a UNIX-like shell underneath when
  using System.system).
  
  Revision  Changes    Path
  1.5       +17 -1     fptools/ghc/utils/unlit/unlit.c