]> git.cworth.org Git - apitrace/blobdiff - specs/scripts/sort.sh
Move all API specs to a separate dir.
[apitrace] / specs / scripts / sort.sh
diff --git a/specs/scripts/sort.sh b/specs/scripts/sort.sh
new file mode 100755 (executable)
index 0000000..5cdc6a4
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+sed -e 's/\(^.*#\) \(0x\w\+\)$/\2 \1/' "$@" | sort | sed -e 's/\(0x\w\+\) \(.*#\)$/\2 \1/'