#!/bin/sh 
# example: $0 developer_docs dune dune_developer.html 

convert ../$1/$2.png /tmp/white_dune_docs/docs/$1/$2.jpg && 
awk -v image=$2 '{gsub(image ".png",image ".jpg");print $0}' /tmp/white_dune_docs/docs/$1/$3 > /tmp/white_dune_docs/tmp &&
mv /tmp/white_dune_docs/tmp /tmp/white_dune_docs/docs/$1/$3 &&
exit 0
exit 1

