commit b35a925bd9ad326acfe8fa52b9ab0dbc7611b098
parent f56db443a001978521d920e2a65494acfc7cede3
Author: Hubert depesz Lubaczewski <depesz@depesz.com>
Date: Sun, 22 Aug 2010 16:23:19 +0200
Add a bit more informative comment in it
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/list-dependencies-from-patches.sh b/tools/list-dependencies-from-patches.sh
@@ -2,7 +2,8 @@
# Simple tool to list dependencies in form suitable for tsort utility.
# Run this script like this:
-# /some/path/list-dependencies-from-patches.sh *.sql
+# /some/path/list-dependencies-from-patches.sh *.sql | tsort | tac
+# To get patches in order that satisfies dependencies while loading them.
grep -hiE '^[[:space:]]*select _v.register_patch\(' "$@" | \
sed 's/^[^(]*(//' | while read LINE