瀏覽代碼

Added rm_deps

ceriel 32 年之前
父節點
當前提交
ad4b0435bc
共有 2 個文件被更改,包括 9 次插入0 次删除
  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'