<work>/postgresql-8.1.4
<orig>/postgresql-8.1.4
diff -urN <orig>/postgresql-8.1.4 <work>/postgresql-8.1.4 > patch_<projectname>_<projno>.txt where <projectname> is a meaningul abbreviation and <projno> is the project number (see the course home page).For example, "patch_matviews_15.txt"
<orig>/postgresql-8.1.4
patch -p1 < <path of the patch file>The argument following "p" is the number of leading directory names to be stripped to look for the file.