(* ::Package:: *)

(************************************************************************)
(* This file was generated automatically by the Mathematica front end.  *)
(* It contains Initialization cells from a Notebook file, which         *)
(* typically will have the same name as this file except ending in      *)
(* ".nb" instead of ".m".                                               *)
(*                                                                      *)
(* This file is intended to be loaded into the Mathematica kernel using *)
(* the package loading commands Get or Needs.  Doing so is equivalent   *)
(* to using the Evaluate Initialization Cells menu command in the front *)
(* end.                                                                 *)
(*                                                                      *)
(* DO NOT EDIT THIS FILE.  This entire file is regenerated              *)
(* automatically each time the parent Notebook file is saved in the     *)
(* Mathematica front end.  Any changes you make to this file will be    *)
(* overwritten.                                                         *)
(************************************************************************)



target = "CDMReview";
sources = Join[
{"CDMReview.tex", "defs.tex", "refs.tex"},
Complement[
FileNames["*.pdf"],
{"CDMReview.pdf", "CDMReview-130202.pdf", "CDMReview-PostSubmissionMods.pdf", "Proofs-130403.pdf", "Reply-130407.pdf"}
],
FileNames["*.fig"]
]


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;
CopyFile[
FileNameJoin[{"../../Projects/dbnsymb/", "dbnsymb"<>#}],
FileNameJoin[{dir, "dbnsymb"<>#}]
]& /@ {".mf", ".sty"};
Export[
FileNameJoin[{dir, "dbnsymb"<>#}],
Import["http://www.math.toronto.edu/~drorbn/projects/dbnsymb/dbnsymb"<>#],
"Text"
]& /@ {".mf", ".sty"};
If[FileType[target<>".zip"] === File, DeleteFile[target<>".zip"]];
CreateArchive[dir, target<>".zip"];
DeleteDirectory[target, DeleteContents->True];
];


{"TitleNotes"->"
    This is the construction page for <a href=CDMReview.pdf>CDMReview.pdf</a>; all sources are at <a href=CDMReview.zip>CDMReview.zip</a>.
    <p>"}
