Permalink
Browse files

Created to images in Dia, and draft script to make png from it

  • Loading branch information...
limansky committed Sep 20, 2009
1 parent dd0682b commit 1d58ac3f91db9270deaaa85b4d30d4c53a34a2ba
View
Binary file not shown.
View
Binary file not shown.
View
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+# Process all dia images to OUTFORMAT images.
+# Usage: makeimages [lang]
+# If localized image is available - uses it, else uses default one.
+
+OUTFORMAT=png
+
+path="."
+outpath="."
+
+for img in `find $path -name "*.dia"`
+do
+ infile=$img
+ if [[ -n $1 ]]
+ then
+ tst=../$1/figures-dia/${img#$path/}
+ if [[ -f $tst ]]
+ then
+ infile=$tst
+ fi
+ fi
+ outfile=$outpath/${img%.dia}.$OUTFORMAT
+ dia $infile -e $outfile
+done
View
Binary file not shown.

0 comments on commit 1d58ac3

Please sign in to comment.