Browse Source

Added rm_deps

ceriel 32 years ago
parent
commit
b8f596af87
2 changed files with 9 additions and 0 deletions
  1. 1 0
      bin/.distr
  2. 8 0
      bin/rm_deps

+ 1 - 0
bin/.distr

@@ -6,3 +6,4 @@ do_resolve
 lint-lib.ack
 lint-lib.unix
 mk_manpage
+rm_deps

+ 8 - 0
bin/rm_deps

@@ -0,0 +1,8 @@
+: $Header$
+
+: remove dependencies from a makefile, write result on standard output.
+: we cannot do this directly in a makefile because some make versions
+: have # start a comment, always.
+
+sed -e '/^#DEPENDENCIES/,$d' $1
+echo '#DEPENDENCIES'