Created
June 14, 2017 08:27
-
-
Save kencoba/09288b2fc90e871a92ad7e49b7a93f80 to your computer and use it in GitHub Desktop.
make difference data.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
if [ $# -ne 2 ]; then | |
echo "$# args specified" 1>&2 | |
echo "usage: sh ./makeDiffs.sh marker_directory target_directory" 1>&2 | |
echo "caution! : the subdirectories of target_directory must be same the marker_directory's subdirectories." | |
exit 1 | |
fi | |
for marker in $1/**/*.png | |
do | |
./diffs.sh $marker ${${marker%/*}/$1/$2} > ${${marker##*/}/.png}.txt | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment