reorganizing the repository
[project-aon.git] / common / pdf / build / extract-graphics.sh
diff --git a/common/pdf/build/extract-graphics.sh b/common/pdf/build/extract-graphics.sh
new file mode 100644 (file)
index 0000000..16c1e79
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+# Extract list of graphics used by a given TeX file
+
+dir=`pwd`
+file=`basename $dir`
+tex="$file.tex"
+grep graphics $tex |
+perl -ne 'print $1."\n" if /{(\w+\.pdf)}/' |
+sort -u
+