ls -d org*/lib | awk -F/ '{print "cd /home/jimse/dev/higgins/" $1 "\n" "prjname=$(pwd | awk -F/ \"{print \\$6 }\")\n" "pngname=$(pwd | awk -F/ \"{print \\$6 \\\".deps.png\\\"}\")\n" "echo -e \"$prjname Project as of \\c\" > libs.txt\n" "date >> libs.txt\n" "echo -------------------------------- >> libs.txt\n" "grep lib/ .classpath | awk -F/ \"{print \\$2}\" | awk -F\\\" \"{print \\$1}\" >> libs.txt \n" "echo \"\" >> libs.txt\n" "/home/jimse/dev/tools/a2png-0.1.5/src/a2png --background=ffffffff --foreground=00000000 --size=800x600 --font=/home/jimse/dev/tools/a2png-0.1.5/Andale\\ Mono --font-size=0.0375 --overwrite --output=$pngname libs.txt\n" "curl -b cookies -c cookies -d \"wpName=$1&wpPassword=$2&wpDomain=bugs.eclipse.org&wpLoginattempt=Log%20in%20-%20Eclipse%20Bugzilla%20users%20only.\" https://wiki.eclipse.org/index.php?title=Special:Userlogin\n" "curl -b cookies -c cookies -F wpUploadFile=@$pngname -F wpSourceType=file -F wpDestFile=$pngname -F wpIgnoreWarning=true -F \"wpUpload=Upload%20file.\" http://wiki.eclipse.org/Special:Upload\n" "rm libs.txt\n" "rm $pngname\n" "rm cookies\n"}' > tempdeps2png.sh

chmod 777 tempdeps2png.sh

./tempdeps2png.sh $1 $2

rm tempdeps2png.sh
