#!/bin/bash
echo 'Enter the dir name for this patching project:'
read PDIRNAME
while ["$PDIRNAME" == '']; do
echo 'Enter a valid dir name'
read PDIRNAME
done
mkdir $PDIRNAME
cd $PDIRNAME
touch "$PDIRNAME.html"
wget http://api.lewcid.org/chef/chef.cgi?recipe=http://svn.tiddlywiki.org/Trunk/contributors/SaqImtiaz/verticals/PatchFactory/PatchFactory.html.recipe -O "$PDIRNAME.html"
svn co http://svn.tiddlywiki.org/Trunk/core/js
echo 'patching dir created'
firefox "$PDIRNAME.html" &
#cd ..
nautilus 'js'