2003-07-27 02:13:43 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
2004-04-15 09:18:52 -07:00
|
|
|
#(***********************************************************************)
|
|
|
|
#(* OCamldoc *)
|
|
|
|
#(* *)
|
|
|
|
#(* Damien Doligez, projet Moscova, INRIA Rocquencourt *)
|
|
|
|
#(* *)
|
|
|
|
#(* Copyright 2003 Institut National de Recherche en Informatique et *)
|
|
|
|
#(* en Automatique. All rights reserved. This file is distributed *)
|
|
|
|
#(* under the terms of the Q Public License version 1.0. *)
|
|
|
|
#(* *)
|
|
|
|
#(***********************************************************************)
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
2003-07-27 02:13:43 -07:00
|
|
|
# usage: remove_DEBUG <file>
|
|
|
|
# remove from <file> every line that contains the string "DEBUG",
|
|
|
|
# respecting the cpp # line annotation conventions
|
|
|
|
|
|
|
|
echo "# 1 \"$1\""
|
2004-02-02 14:33:27 -08:00
|
|
|
LC_ALL=C sed -e '/DEBUG/s/.*//' "$1"
|