SetDirectory["C:\\drorbn\\AcademicPensieve\\2014-06\\UnitarityOfGassner"]

FT[f_String]:=AbsoluteTime@FileDate@f;
If[!TrueQ[And[
FT@"UnitarityOfGassnerDemo.pdf" > FT@"nb/UnitarityOfGassnerDemo.pdf"
]],
cl="C:\\bin\\cpdf.exe -compress nb/UnitarityOfGassnerDemo.pdf -o UnitarityOfGassnerDemo.pdf";
Print["2014-06/UnitarityOfGassner: Running ",cl," ..."];
Run[cl];
]

target = "UofG";
sources = {"UofG.tex", "B.pdf", "R3.pdf", "UnitarityOfGassnerDemo.pdf"};
If[FileType[target<>".zip"]===None || (
FileType[target<>".zip"] === File && OrderedQ[{FileDate[target<>".zip"], Sort[FileDate /@ sources]  // Last}]),
Print["Making ",target,".zip..."];
If[
FileType[target] === Directory,
DeleteDirectory[target, DeleteContents->True]
];
dir=CreateDirectory[target];
CopyFile[# , FileNameJoin[{dir, #}]]& /@ sources;
If[FileType[target<>".zip"] === File, DeleteFile[target<>".zip"]];
CreateArchive[dir, target<>".zip"];
DeleteDirectory[target, DeleteContents->True];
];

(*
SetDirectory["C:\\drorbn\\AcademicPensieve\\2014-06\\UnitarityOfGassner"];
FT[f_String]:=AbsoluteTime@FileDate@f;
If[!TrueQ[And[
FT@"UnitarityOfGassnerFull.pdf" > FT@"UnitarityOfGassner.pdf",
FT@"UnitarityOfGassnerFull.pdf" > FT@"nb/UnitarityOfGassnerDemo.pdf"
]],
cl="C:\\bin\\cpdf.exe UnitarityOfGassner.pdf nb/UnitarityOfGassnerDemo.pdf -o UnitarityOfGassnerFull.pdf";
Print["2014-06/UnitarityOfGassner: Running ",cl," ..."];
Run[cl];
]
*)

target = "UofG-CSU";
sources = {"UofG-CSU.tex", "B.pdf", "R3.pdf"};
If[FileType[target<>".zip"]===None || (
FileType[target<>".zip"] === File && OrderedQ[{FileDate[target<>".zip"], Sort[FileDate /@ sources]  // Last}]),
Print["Making ",target,".zip..."];
If[
FileType[target] === Directory,
DeleteDirectory[target, DeleteContents->True]
];
dir=CreateDirectory[target];
CopyFile[# , FileNameJoin[{dir, #}]]& /@ sources;
If[FileType[target<>".zip"] === File, DeleteFile[target<>".zip"]];
CreateArchive[dir, target<>".zip"];
DeleteDirectory[target, DeleteContents->True];
];

{
"TitleNotes" -> "<div style=\"clear: right; float: right; padding: 8px; width: 400px;\"><img src=logo.png></div>This is the construction page for my paper <b>A Note on the Unitarity Property of the Gassner Invariant</b> (<a href=UofG.pdf>PDF here</a>). <p><b>Abstract.</b> We give a 3-page description of the Gassner invariant / representation of braids / pure braids, along with a description and a proof of its unitarity property.\n<p>"
}