Permalink
Browse files

screenshots.sh: automatic screenshots script.

  • Loading branch information...
1 parent fc4a0b5 commit 27c9b8e7098534fb543dc7f2b110dc8758d007d8 @vmagnin vmagnin committed Apr 28, 2011
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -0,0 +1,33 @@
+#! /bin/sh
+# Automatic screenshots of the gtk-fortran examples
+# Parameters: $1 suffix (e.g. -ubuntu11_04), $2 sleep time
+# You need to install scrot
+# GNU GPL 3
+# Contributed by Vincent MAGNIN
+# April 27th 2011, updated April 28th 2011.
+
+if [ $# -eq 0 ]; then
+ seconds=3
+ suffix="-ubuntu_11_04_32bits"
+else
+ seconds=$2
+ suffix=$1
+fi
+
+echo "Suffix: "$suffix
+echo "Sleep time: "$seconds
+echo "Taking screenshots..."
+cd ../examples/
+
+for file in *.f90.out; do
+ echo $file
+ #Launch the program:
+ ./$file &
+ sleep $seconds
+ #remove the double extension (seven characters after a point):
+ picfile=`echo $file|sed 's/\..\{7\}$//'`
+ #Take and save a screenshot of the active window with border:
+ scrot -ub ../screenshots/$picfile$suffix.png
+ #Kill the program before launching next one:
+ kill $!
+done

0 comments on commit 27c9b8e

Please sign in to comment.