diff --git a/doc/Appendix_Font_Tables.tex b/doc/Appendix_Font_Tables.tex
index 1b15e5059..3f72113fa 100644
--- a/doc/Appendix_Font_Tables.tex
+++ b/doc/Appendix_Font_Tables.tex
@@ -1,5 +1,23 @@
% !TEX root = GregorioRef.tex
% !TEX program = LuaLaTeX+se
+%
+% Copyright (C) 2006-2016 The Gregorio Project (see CONTRIBUTORS.md)
+%
+% This file is part of Gregorio.
+%
+% Gregorio is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Gregorio is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Gregorio. If not, see .
+%
\begin{landscape}
\section{Font Glyph Tables}\label{glyphtable}
diff --git a/doc/Command_Index_User.tex b/doc/Command_Index_User.tex
index a78f17976..63105e1f0 100644
--- a/doc/Command_Index_User.tex
+++ b/doc/Command_Index_User.tex
@@ -1,5 +1,23 @@
% !TEX root = GregorioRef.tex
% !TEX program = LuaLaTeX+se
+%
+% Copyright (C) 2006-2016 The Gregorio Project (see CONTRIBUTORS.md)
+%
+% This file is part of Gregorio.
+%
+% Gregorio is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Gregorio is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Gregorio. If not, see .
+%
\section{User Controls}
These functions are available to the user to customize elements of the
diff --git a/doc/Command_Index_gregorio.tex b/doc/Command_Index_gregorio.tex
index 9319935f3..5f7f89830 100644
--- a/doc/Command_Index_gregorio.tex
+++ b/doc/Command_Index_gregorio.tex
@@ -1,5 +1,23 @@
% !TEX root = GregorioRef.tex
% !TEX program = LuaLaTeX+se
+%
+% Copyright (C) 2006-2016 The Gregorio Project (see CONTRIBUTORS.md)
+%
+% This file is part of Gregorio.
+%
+% Gregorio is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Gregorio is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Gregorio. If not, see .
+%
\section{Gregorio Controls}
These functions are the ones written by gregorio to the gtex file.
diff --git a/doc/Command_Index_internal.tex b/doc/Command_Index_internal.tex
index e4aae155d..6d40555a8 100644
--- a/doc/Command_Index_internal.tex
+++ b/doc/Command_Index_internal.tex
@@ -1,5 +1,23 @@
% !TEX root = GregorioRef.tex
% !TEX program = LuaLaTeX+se
+%
+% Copyright (C) 2006-2016 The Gregorio Project (see CONTRIBUTORS.md)
+%
+% This file is part of Gregorio.
+%
+% Gregorio is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Gregorio is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Gregorio. If not, see .
+%
\section{Gregorio\TeX{} Controls}
These functions are the ones used by Gregorio\TeX{} internally as it
diff --git a/doc/Gabc.tex b/doc/Gabc.tex
index 2afcf8723..4e5d168cd 100644
--- a/doc/Gabc.tex
+++ b/doc/Gabc.tex
@@ -1,5 +1,23 @@
% !TEX root = GregorioRef.tex
% !TEX program = LuaLaTeX+se
+%
+% Copyright (C) 2006-2016 The Gregorio Project (see CONTRIBUTORS.md)
+%
+% This file is part of Gregorio.
+%
+% Gregorio is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Gregorio is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Gregorio. If not, see .
+%
\section{The GABC File}
gabc is a simple notation based exclusively on ASCII characters that
diff --git a/doc/GregorioNabcRef.tex b/doc/GregorioNabcRef.tex
index 744e0fbd0..e635bf8a6 100644
--- a/doc/GregorioNabcRef.tex
+++ b/doc/GregorioNabcRef.tex
@@ -1,5 +1,22 @@
% !TEX program = LuaLaTeX+se
-
+%
+% Copyright (C) 2006-2016 The Gregorio Project (see CONTRIBUTORS.md)
+%
+% This file is part of Gregorio.
+%
+% Gregorio is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Gregorio is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Gregorio. If not, see .
+%
\documentclass[a4paper]{article}
\usepackage{color}
\usepackage[margin=1cm]{geometry}
diff --git a/doc/GregorioRef.lua b/doc/GregorioRef.lua
index bcc35a9bb..2e7d06dd5 100644
--- a/doc/GregorioRef.lua
+++ b/doc/GregorioRef.lua
@@ -1,3 +1,20 @@
+-- Copyright (C) 2006-2016 The Gregorio Project (see CONTRIBUTORS.md)
+--
+-- This file is part of Gregorio.
+--
+-- Gregorio is free software: you can redistribute it and/or modify
+-- it under the terms of the GNU General Public License as published by
+-- the Free Software Foundation, either version 3 of the License, or
+-- (at your option) any later version.
+--
+-- Gregorio is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+-- GNU General Public License for more details.
+--
+-- You should have received a copy of the GNU General Public License
+-- along with Gregorio. If not, see .
+
local P = lpeg.P
local R = lpeg.R
local C = lpeg.C
diff --git a/doc/GregorioRef.tex b/doc/GregorioRef.tex
index a2453f4a0..e8c1d16b9 100644
--- a/doc/GregorioRef.tex
+++ b/doc/GregorioRef.tex
@@ -1,4 +1,22 @@
% !TEX program = LuaLaTeX+se
+%
+% Copyright (C) 2006-2016 The Gregorio Project (see CONTRIBUTORS.md)
+%
+% This file is part of Gregorio.
+%
+% Gregorio is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Gregorio is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Gregorio. If not, see .
+%
\documentclass[12pt,a4paper]{article}
\usepackage[titletoc,toc,title]{appendix}
\usepackage{fontspec}
diff --git a/install-gtex.sh b/install-gtex.sh
index 8501843a4..fe1c18878 100755
--- a/install-gtex.sh
+++ b/install-gtex.sh
@@ -66,9 +66,7 @@ LATEXFILES=(tex/gregorio*.sty)
TTFFILES=(gregorio.ttf greciliae.ttf granapadano.ttf gregorio-op.ttf
greciliae-op.ttf granapadano-op.ttf greextra.ttf gregall.ttf
gresgmodern.ttf)
-DOCFILES=(doc/Appendix*.tex doc/Command*.tex doc/Gabc.tex
- doc/*Ref.tex doc/*Ref.lua doc/*.gabc
- doc/Gregorio*Ref.pdf)
+DOCFILES=(doc/*.tex doc/*.lua doc/*.gabc doc/*.pdf doc/README.md)
EXAMPLEFILES=(examples/FactusEst.gabc examples/PopulusSion.gabc
examples/main-lualatex.tex examples/debugging.tex)
FONTSRCFILES=(gregorio-base.sfd granapadano-base.sfd greciliae-base.sfd
diff --git a/macosx/create_package.sh b/macosx/create_package.sh
index e65a9b7e7..0668ebadd 100755
--- a/macosx/create_package.sh
+++ b/macosx/create_package.sh
@@ -74,9 +74,10 @@ else
make doc
cd ..
cp doc/*.tex $EXTRASDIR/doc/
- cp doc/*-*.pdf $EXTRASDIR/doc/
- cp doc/*.md $EXTRASDIR/doc/
+ cp doc/*.lua $EXTRASDIR/doc/
cp doc/*.gabc $EXTRASDIR/doc/
+ cp doc/*.pdf $EXTRASDIR/doc/
+ cp doc/README.md $EXTRASDIR/doc/
cp -r contrib/ $EXTRASDIR/contrib
find $EXTRASDIR/contrib -name 'Makefile*' -delete
cp examples/*.tex $EXTRASDIR/examples/
@@ -129,4 +130,4 @@ if $clean; then
cd $HERE
rm -rf build/
rm -rf Resources/
-fi
\ No newline at end of file
+fi
diff --git a/windows/gregorio.iss b/windows/gregorio.iss
index 83d3cfbc1..17c35ca4e 100644
--- a/windows/gregorio.iss
+++ b/windows/gregorio.iss
@@ -57,8 +57,8 @@ Source: "../CHANGELOG.md"; DestDir: "{app}";
Source: "../README.md"; DestDir: "{app}";
Source: "../CONTRIBUTORS.md"; DestDir: "{app}";
Source: "../UPGRADE.md"; DestDir: "{app}";
-Source: "../doc/Gregorio*Ref.pdf"; DestDir: "{app}";
-Source: "../doc/Gregorio*Ref.pdf"; DestDir: "{app}\texmf\doc\luatex\gregoriotex";
+Source: "../doc/*.pdf"; DestDir: "{app}";
+Source: "../doc/*.pdf"; DestDir: "{app}\texmf\doc\luatex\gregoriotex";
Source: "../COPYING.md"; DestDir: "{app}";
Source: "../contrib/system-setup.bat"; DestDir: "{app}";
Source: "../contrib/*"; DestDir: "{app}\contrib"; Excludes: "Makefile*,TeXShop\*,*.command";
@@ -74,13 +74,10 @@ Source: "../fonts/*.ttf"; DestDir: "{app}\texmf\fonts\truetype\public\gregoriote
Source: "../fonts/*.sfd"; DestDir: "{app}\texmf\fonts\source\gregoriotex";
Source: "../fonts/*.py"; DestDir: "{app}\texmf\fonts\source\gregoriotex";
Source: "../fonts/README.md"; DestDir: "{app}\texmf\fonts\source\gregoriotex";
-Source: "../README.md"; DestDir: "{app}\texmf\doc\luatex\gregoriotex";
-Source: "../doc/Appendix*.tex"; DestDir: "{app}\texmf\doc\luatex\gregoriotex";
-Source: "../doc/Command*.tex"; DestDir: "{app}\texmf\doc\luatex\gregoriotex";
-Source: "../doc/Gabc.tex"; DestDir: "{app}\texmf\doc\luatex\gregoriotex";
-Source: "../doc/*Ref.tex"; DestDir: "{app}\texmf\doc\luatex\gregoriotex";
-Source: "../doc/*Ref.lua"; DestDir: "{app}\texmf\doc\luatex\gregoriotex";
+Source: "../doc/*.tex"; DestDir: "{app}\texmf\doc\luatex\gregoriotex";
+Source: "../doc/*.lua"; DestDir: "{app}\texmf\doc\luatex\gregoriotex";
Source: "../doc/*.gabc"; DestDir: "{app}\texmf\doc\luatex\gregoriotex";
+Source: "../doc/README.md"; DestDir: "{app}\texmf\doc\luatex\gregoriotex";
[InstallDelete]
Type: files; Name: "{app}\gregorio.exe"