]> git.tue.mpg.de Git - paraslash.git/commitdiff
Add the depend.sh script.
authorAndre Noll <maan@systemlinux.org>
Thu, 1 Oct 2009 00:08:20 +0000 (02:08 +0200)
committerAndre Noll <maan@systemlinux.org>
Thu, 1 Oct 2009 00:08:20 +0000 (02:08 +0200)
Oops, this should already have been included two commits ago..

depend.sh [new file with mode: 0755]

diff --git a/depend.sh b/depend.sh
new file mode 100755 (executable)
index 0000000..db32f6c
--- /dev/null
+++ b/depend.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+dir="$1"
+shift
+gcc -MM -MG "$@" | sed -e "s@^\(.*\)\.o:@$dir/\1.d $dir/\1.o:@"