From d43587b474d3bce17fa8922d07f5587bf116573d Mon Sep 17 00:00:00 2001
From: witiko <witiko@gmail.com>
Date: Tue, 28 Apr 2015 10:03:57 +0200
Subject: [PATCH] Moved the example.tex file one directory above the class to
 allow the user to have a separate Makefile for documents derived from
 example.tex.

---
 Makefile                                     | 138 ++-----------------
 example.tex                                  |   4 +-
 .gitignore => fithesis3/.gitignore           |   0
 fithesis3/Makefile                           | 128 +++++++++++++++++
 docstrip.cfg => fithesis3/docstrip.cfg       |   0
 fithesis.dtx => fithesis3/fithesis.dtx       |   0
 fithesis.ins => fithesis3/fithesis.ins       |   0
 {locale => fithesis3/locale}/Makefile        |   0
 {locale => fithesis3/locale}/czech.dtx       |   0
 {locale => fithesis3/locale}/czech.ins       |   0
 {locale => fithesis3/locale}/english.dtx     |   0
 {locale => fithesis3/locale}/english.ins     |   0
 {locale => fithesis3/locale}/slovak.dtx      |   0
 {locale => fithesis3/locale}/slovak.ins      |   0
 {logo => fithesis3/logo}/mu/Makefile         |   0
 {logo => fithesis3/logo}/mu/base.eps         | Bin
 {logo => fithesis3/logo}/mu/color/.gitignore |   0
 {logo => fithesis3/logo}/mu/color/Makefile   |   0
 {logo => fithesis3/logo}/mu/color/base.eps   | Bin
 {logo => fithesis3/logo}/mu/color/econ.eps   | Bin
 {logo => fithesis3/logo}/mu/color/fi.eps     |   0
 {logo => fithesis3/logo}/mu/color/fsps.eps   | Bin
 {logo => fithesis3/logo}/mu/color/fss.eps    | Bin
 {logo => fithesis3/logo}/mu/color/law.eps    | Bin
 {logo => fithesis3/logo}/mu/color/med.eps    | Bin
 {logo => fithesis3/logo}/mu/color/ped.eps    | Bin
 {logo => fithesis3/logo}/mu/color/phil.eps   | Bin
 {logo => fithesis3/logo}/mu/color/sci.eps    | Bin
 {logo => fithesis3/logo}/mu/econ.eps         |   0
 {logo => fithesis3/logo}/mu/fi.eps           |   0
 {logo => fithesis3/logo}/mu/fsps.eps         |   0
 {logo => fithesis3/logo}/mu/fss.eps          | Bin
 {logo => fithesis3/logo}/mu/law.eps          |   0
 {logo => fithesis3/logo}/mu/med.eps          |   0
 {logo => fithesis3/logo}/mu/ped.eps          |   0
 {logo => fithesis3/logo}/mu/phil.eps         |   0
 {logo => fithesis3/logo}/mu/sci.eps          |   0
 {style => fithesis3/style}/Makefile          |   0
 {style => fithesis3/style}/base.dtx          |   0
 {style => fithesis3/style}/base.ins          |   0
 {style => fithesis3/style}/mu/Makefile       |   0
 {style => fithesis3/style}/mu/base.dtx       |   0
 {style => fithesis3/style}/mu/base.ins       |   0
 {style => fithesis3/style}/mu/econ.dtx       |   0
 {style => fithesis3/style}/mu/econ.ins       |   0
 {style => fithesis3/style}/mu/fi.dtx         |   0
 {style => fithesis3/style}/mu/fi.ins         |   0
 {style => fithesis3/style}/mu/fsps.dtx       |   0
 {style => fithesis3/style}/mu/fsps.ins       |   0
 {style => fithesis3/style}/mu/fss.dtx        |   0
 {style => fithesis3/style}/mu/fss.ins        |   0
 {style => fithesis3/style}/mu/law.dtx        |   0
 {style => fithesis3/style}/mu/law.ins        |   0
 {style => fithesis3/style}/mu/med.dtx        |   0
 {style => fithesis3/style}/mu/med.ins        |   0
 {style => fithesis3/style}/mu/ped.dtx        |   0
 {style => fithesis3/style}/mu/ped.ins        |   0
 {style => fithesis3/style}/mu/phil.dtx       |   0
 {style => fithesis3/style}/mu/phil.ins       |   0
 {style => fithesis3/style}/mu/sci.dtx        |   0
 {style => fithesis3/style}/mu/sci.ins        |   0
 {test => fithesis3/test}/Makefile            |   0
 {test => fithesis3/test}/base-10pt.tex       |   0
 {test => fithesis3/test}/base-11pt.tex       |   0
 {test => fithesis3/test}/base-12pt.tex       |   0
 {test => fithesis3/test}/base-utf8.tex       |   0
 {test => fithesis3/test}/econ-czech.tex      |   0
 {test => fithesis3/test}/econ-english.tex    |   0
 {test => fithesis3/test}/econ-slovak.tex     |   0
 {test => fithesis3/test}/fi-color.tex        |   0
 {test => fithesis3/test}/fi-czech.tex        |   0
 {test => fithesis3/test}/fi-english.tex      |   0
 {test => fithesis3/test}/fi-female.tex       |   0
 {test => fithesis3/test}/fi-male.tex         |   0
 {test => fithesis3/test}/fi-rigorous.tex     |   0
 {test => fithesis3/test}/fi-slovak.tex       |   0
 {test => fithesis3/test}/fsps-czech.tex      |   0
 {test => fithesis3/test}/fsps-english.tex    |   0
 {test => fithesis3/test}/fsps-slovak.tex     |   0
 {test => fithesis3/test}/fss-czech.tex       |   0
 {test => fithesis3/test}/fss-english.tex     |   0
 {test => fithesis3/test}/fss-slovak.tex      |   0
 {test => fithesis3/test}/law-czech.tex       |   0
 {test => fithesis3/test}/law-english.tex     |   0
 {test => fithesis3/test}/law-slovak.tex      |   0
 {test => fithesis3/test}/med-czech.tex       |   0
 {test => fithesis3/test}/med-english.tex     |   0
 {test => fithesis3/test}/med-slovak.tex      |   0
 {test => fithesis3/test}/ped-czech.tex       |   0
 {test => fithesis3/test}/ped-english.tex     |   0
 {test => fithesis3/test}/ped-slovak.tex      |   0
 {test => fithesis3/test}/phil-czech.tex      |   0
 {test => fithesis3/test}/phil-english.tex    |   0
 {test => fithesis3/test}/phil-slovak.tex     |   0
 {test => fithesis3/test}/sci-color.tex       |   0
 {test => fithesis3/test}/sci-female.tex      |   0
 {test => fithesis3/test}/sci-male.tex        |   0
 {test => fithesis3/test}/sci-rigorous.tex    |   0
 98 files changed, 142 insertions(+), 128 deletions(-)
 rename .gitignore => fithesis3/.gitignore (100%)
 create mode 100644 fithesis3/Makefile
 rename docstrip.cfg => fithesis3/docstrip.cfg (100%)
 rename fithesis.dtx => fithesis3/fithesis.dtx (100%)
 rename fithesis.ins => fithesis3/fithesis.ins (100%)
 rename {locale => fithesis3/locale}/Makefile (100%)
 rename {locale => fithesis3/locale}/czech.dtx (100%)
 rename {locale => fithesis3/locale}/czech.ins (100%)
 rename {locale => fithesis3/locale}/english.dtx (100%)
 rename {locale => fithesis3/locale}/english.ins (100%)
 rename {locale => fithesis3/locale}/slovak.dtx (100%)
 rename {locale => fithesis3/locale}/slovak.ins (100%)
 rename {logo => fithesis3/logo}/mu/Makefile (100%)
 rename {logo => fithesis3/logo}/mu/base.eps (100%)
 rename {logo => fithesis3/logo}/mu/color/.gitignore (100%)
 rename {logo => fithesis3/logo}/mu/color/Makefile (100%)
 rename {logo => fithesis3/logo}/mu/color/base.eps (100%)
 rename {logo => fithesis3/logo}/mu/color/econ.eps (100%)
 rename {logo => fithesis3/logo}/mu/color/fi.eps (100%)
 rename {logo => fithesis3/logo}/mu/color/fsps.eps (100%)
 rename {logo => fithesis3/logo}/mu/color/fss.eps (100%)
 rename {logo => fithesis3/logo}/mu/color/law.eps (100%)
 rename {logo => fithesis3/logo}/mu/color/med.eps (100%)
 rename {logo => fithesis3/logo}/mu/color/ped.eps (100%)
 rename {logo => fithesis3/logo}/mu/color/phil.eps (100%)
 rename {logo => fithesis3/logo}/mu/color/sci.eps (100%)
 rename {logo => fithesis3/logo}/mu/econ.eps (100%)
 rename {logo => fithesis3/logo}/mu/fi.eps (100%)
 rename {logo => fithesis3/logo}/mu/fsps.eps (100%)
 rename {logo => fithesis3/logo}/mu/fss.eps (100%)
 rename {logo => fithesis3/logo}/mu/law.eps (100%)
 rename {logo => fithesis3/logo}/mu/med.eps (100%)
 rename {logo => fithesis3/logo}/mu/ped.eps (100%)
 rename {logo => fithesis3/logo}/mu/phil.eps (100%)
 rename {logo => fithesis3/logo}/mu/sci.eps (100%)
 rename {style => fithesis3/style}/Makefile (100%)
 rename {style => fithesis3/style}/base.dtx (100%)
 rename {style => fithesis3/style}/base.ins (100%)
 rename {style => fithesis3/style}/mu/Makefile (100%)
 rename {style => fithesis3/style}/mu/base.dtx (100%)
 rename {style => fithesis3/style}/mu/base.ins (100%)
 rename {style => fithesis3/style}/mu/econ.dtx (100%)
 rename {style => fithesis3/style}/mu/econ.ins (100%)
 rename {style => fithesis3/style}/mu/fi.dtx (100%)
 rename {style => fithesis3/style}/mu/fi.ins (100%)
 rename {style => fithesis3/style}/mu/fsps.dtx (100%)
 rename {style => fithesis3/style}/mu/fsps.ins (100%)
 rename {style => fithesis3/style}/mu/fss.dtx (100%)
 rename {style => fithesis3/style}/mu/fss.ins (100%)
 rename {style => fithesis3/style}/mu/law.dtx (100%)
 rename {style => fithesis3/style}/mu/law.ins (100%)
 rename {style => fithesis3/style}/mu/med.dtx (100%)
 rename {style => fithesis3/style}/mu/med.ins (100%)
 rename {style => fithesis3/style}/mu/ped.dtx (100%)
 rename {style => fithesis3/style}/mu/ped.ins (100%)
 rename {style => fithesis3/style}/mu/phil.dtx (100%)
 rename {style => fithesis3/style}/mu/phil.ins (100%)
 rename {style => fithesis3/style}/mu/sci.dtx (100%)
 rename {style => fithesis3/style}/mu/sci.ins (100%)
 rename {test => fithesis3/test}/Makefile (100%)
 rename {test => fithesis3/test}/base-10pt.tex (100%)
 rename {test => fithesis3/test}/base-11pt.tex (100%)
 rename {test => fithesis3/test}/base-12pt.tex (100%)
 rename {test => fithesis3/test}/base-utf8.tex (100%)
 rename {test => fithesis3/test}/econ-czech.tex (100%)
 rename {test => fithesis3/test}/econ-english.tex (100%)
 rename {test => fithesis3/test}/econ-slovak.tex (100%)
 rename {test => fithesis3/test}/fi-color.tex (100%)
 rename {test => fithesis3/test}/fi-czech.tex (100%)
 rename {test => fithesis3/test}/fi-english.tex (100%)
 rename {test => fithesis3/test}/fi-female.tex (100%)
 rename {test => fithesis3/test}/fi-male.tex (100%)
 rename {test => fithesis3/test}/fi-rigorous.tex (100%)
 rename {test => fithesis3/test}/fi-slovak.tex (100%)
 rename {test => fithesis3/test}/fsps-czech.tex (100%)
 rename {test => fithesis3/test}/fsps-english.tex (100%)
 rename {test => fithesis3/test}/fsps-slovak.tex (100%)
 rename {test => fithesis3/test}/fss-czech.tex (100%)
 rename {test => fithesis3/test}/fss-english.tex (100%)
 rename {test => fithesis3/test}/fss-slovak.tex (100%)
 rename {test => fithesis3/test}/law-czech.tex (100%)
 rename {test => fithesis3/test}/law-english.tex (100%)
 rename {test => fithesis3/test}/law-slovak.tex (100%)
 rename {test => fithesis3/test}/med-czech.tex (100%)
 rename {test => fithesis3/test}/med-english.tex (100%)
 rename {test => fithesis3/test}/med-slovak.tex (100%)
 rename {test => fithesis3/test}/ped-czech.tex (100%)
 rename {test => fithesis3/test}/ped-english.tex (100%)
 rename {test => fithesis3/test}/ped-slovak.tex (100%)
 rename {test => fithesis3/test}/phil-czech.tex (100%)
 rename {test => fithesis3/test}/phil-english.tex (100%)
 rename {test => fithesis3/test}/phil-slovak.tex (100%)
 rename {test => fithesis3/test}/sci-color.tex (100%)
 rename {test => fithesis3/test}/sci-female.tex (100%)
 rename {test => fithesis3/test}/sci-male.tex (100%)
 rename {test => fithesis3/test}/sci-rigorous.tex (100%)

diff --git a/Makefile b/Makefile
index 8b8d799..43cd1e0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,133 +1,19 @@
-.PHONY: all clean dist dist-clean explode implode install uninstall test
-
-SUBMAKEFILES=logo/mu logo/mu/color locale style style/mu
-CLASSFILES=fithesis.cls fithesis2.cls fithesis3.cls
-STYLEFILES=style/*.sty style/*/*.sty style/*/*.clo
-LOGOFILES=logo/*/*.eps logo/*/color/*.eps logo/*/*.pdf logo/*/color/*.pdf
-LOCALEFILES=locale/*.def locale/*/*.def locale/*/*/*.def
-DTXFILES=*.dtx locale/*.dtx style/*.dtx style/*/*.dtx
-INSFILES=*.ins locale/*.ins style/*.ins style/*/*.ins
-MAKEFILES=Makefile */Makefile */*/Makefile */*/*/Makefile
-RESOURCES=$(STYLEFILES) $(LOGOFILES) $(LOCALEFILES)
-SOURCEFILES=$(DTXFILES) $(INSFILES) docstrip.cfg
-AUXFILES=example.aux example.log example.out example.toc example.lot example.lof example.bib fithesis.aux fithesis.log fithesis.toc fithesis.ind fithesis.idx fithesis.out fithesis.ilg fithesis.gls fithesis.glo fithesis.hd
-MANUAL=fithesis.pdf
-PDFSOURCES=fithesis.dtx example.tex
-PDFFILES=$(MANUAL) example.pdf
-TDSFILE=fithesis3.tds.zip
-DISTFILE=fithesis3.zip
-LATEXFILES=$(CLASSFILES) $(RESOURCES)
-TEXLIVEDIR=$(shell kpsewhich -var-value TEXMFLOCAL)
-
-# This pseudo-target creates the class files, typesets both
-# the example file and the technical documentation, makes
-# the style and locale files and removes any auxiliary files.
+.PHONY: all clear
 all:
-	for dir in $(SUBMAKEFILES); do make all -C "$$dir"; done
-	make explode clean
-
-# This pseudo-target creates the class files and typesets
-# both the example file and the technical documentation
-explode: fithesis3.cls $(PDFFILES)
-
-# This pseudo-target performs the unit tests
-test: all
-	cd test; make
-
-# This pseudo-target creates the distribution archives.
-dist: all $(TDSFILE) $(DISTFILE)
-
-# This target creates the class files.
-fithesis3.cls: fithesis.ins fithesis.dtx
-	tex $<
-
-# This target typesets the technical documentation.
-fithesis.pdf: $(DTXFILES)
-	pdflatex $<
-	makeindex -s gind.ist fithesis
-	makeindex -s gglo.ist -o fithesis.gls fithesis.glo
-	pdflatex $<
-	pdflatex $<
+	cd fithesis3 && make
+	make example.pdf clear
 
 # This target typesets the example.
-example.pdf: example.tex fithesis3.cls $(RESOURCES)
+example.pdf: example.tex
 	pdflatex $<
 	pdflatex $<
 
-# This target generates a TeX directory structure file
-$(TDSFILE): $(LATEXFILES) $(SOURCEFILES) $(PDFFILES) $(PDFSOURCES)
-	DIR=`mktemp -d` && \
-	make install to="$$DIR" nohash=true && \
-  (cd "$$DIR" && zip -r -v -nw $@ *) && \
-	mv "$$DIR"/$@ $@ && rm -rf "$$DIR"
-
-# This target generates a distribution file
-$(DISTFILE): $(LATEXFILES) $(SOURCEFILES) $(MAKEFILES) $(PDFFILES) $(PDFSOURCES)
-	DIR=`mktemp -d` && mkdir "$$DIR/fithesis3" && \
-	cp --verbose $(TDSFILE) "$$DIR" && \
-	cp --parents --verbose $^ "$$DIR/fithesis3" && \
-  (cd "$$DIR" && zip -r -v -nw $@ *) && \
-	mv "$$DIR"/$@ $@ && rm -rf "$$DIR"
-
-# This pseudo-target installs the class files and
-# the technical documentation into the TeX directory
-# structure, whose root directory is specified within
-# the "to" argument. Specify "nohash=true", if you wish
-# to forgo the reindexing of the package database.
-install:
-	@if [ -z "$(to)" ]; then \
-	  printf "Usage: make install to=DIRECTORY\nDetected TeXLive directory: %s\n" $(TEXLIVEDIR); \
-	  exit 1; \
-	fi
-	
-	# Class, locale, style and logo files
-	mkdir --parents "$(to)/tex/latex/fithesis3"
-	cp --parents --verbose $(LATEXFILES) "$(to)/tex/latex/fithesis3"
-	
-	# Source files
-	mkdir --parents "$(to)/source/latex/fithesis3"
-	cp --parents --verbose $(SOURCEFILES) "$(to)/source/latex/fithesis3"
-	
-	# Documentation
-	mkdir --parents "$(to)/doc/latex/fithesis3"
-	cp $(MANUAL) "$(to)/doc/latex/fithesis3/manual.pdf"
-
-	# Rebuild the hash
-	[ "$(nohash)" = "true" ] || texhash
-
-# This pseudo-target installs the class files and
-# the technical documentation into the TeX directory
-# structure, whose root directory is specified within
-# the "to" argument. Specify "nohash=true", if you wish
-# to forgo the reindexing of the package database.
-uninstall:
-	@if [ -z "$(from)" ]; then \
-	  printf "Usage: make uninstall from=DIRECTORY\nDetected TeXLive directory: %s\n" $(TEXLIVEDIR); \
-	  exit 1; \
-	fi
-	
-	# Class, locale, style and logo files
-	rm -rf "$(from)/tex/latex/fithesis3"
-	
-	# Source files
-	rm -rf "$(from)/source/latex/fithesis3"
-	
-	# Documentation
-	rm "$(from)/doc/latex/fithesis3/manual.pdf"
-	rmdir "$(from)/doc/latex/fithesis3/"
-
-	# Rebuild the hash
-	[ "$(nohash)" = "true" ] || texhash
-
-# This pseudo-target removes any existing auxiliary files.
-clean:
-	rm -f $(AUXFILES)
-
-# This pseudo-target removes the distribution archives.
-dist-clean:
-	rm -f $(DISTFILE) $(TDSFILE)
+# This target removes any auxiliary files.
+clear:
+	rm -f example.aux example.log example.out \
+	  example.toc example.lot example.lof
 
-# This pseudo-target removes any makeable files.
-implode: clean dist-clean
-	rm -f $(PDFFILES) $(CLASSFILES)
-	for dir in $(SUBMAKEFILES); do make implode -C "$$dir"; done
+# This target removes any auxiliary files
+# and the output PDF file.
+implode: clear
+	rm -f example.pdf
diff --git a/example.tex b/example.tex
index c9591a7..44e9c25 100644
--- a/example.tex
+++ b/example.tex
@@ -1,7 +1,7 @@
-\documentclass[color,cover]{fithesis3}
+\documentclass[color,cover]{fithesis3/fithesis3}
 \usepackage[utf8]{inputenc}
 \usepackage[slovak]{babel}
-\thesissetup{basepath=.,type=r}
+\thesissetup{type=r}
 \begin{document}
   Ahoj všetci!
 \end{document}
diff --git a/.gitignore b/fithesis3/.gitignore
similarity index 100%
rename from .gitignore
rename to fithesis3/.gitignore
diff --git a/fithesis3/Makefile b/fithesis3/Makefile
new file mode 100644
index 0000000..d0c6a99
--- /dev/null
+++ b/fithesis3/Makefile
@@ -0,0 +1,128 @@
+.PHONY: all clean dist dist-clean explode implode install uninstall test
+
+SUBMAKEFILES=logo/mu logo/mu/color locale style style/mu
+CLASSFILES=fithesis.cls fithesis2.cls fithesis3.cls
+STYLEFILES=style/*.sty style/*/*.sty style/*/*.clo
+LOGOFILES=logo/*/*.eps logo/*/color/*.eps logo/*/*.pdf logo/*/color/*.pdf
+LOCALEFILES=locale/*.def locale/*/*.def locale/*/*/*.def
+DTXFILES=*.dtx locale/*.dtx style/*.dtx style/*/*.dtx
+INSFILES=*.ins locale/*.ins style/*.ins style/*/*.ins
+MAKEFILES=Makefile */Makefile */*/Makefile */*/*/Makefile
+RESOURCES=$(STYLEFILES) $(LOGOFILES) $(LOCALEFILES)
+SOURCEFILES=$(DTXFILES) $(INSFILES) docstrip.cfg
+AUXFILES=fithesis.aux fithesis.log fithesis.toc fithesis.ind fithesis.idx fithesis.out fithesis.ilg fithesis.gls fithesis.glo fithesis.hd
+MANUAL=fithesis.pdf
+PDFSOURCES=fithesis.dtx
+PDFFILES=$(MANUAL)
+TDSFILE=fithesis3.tds.zip
+DISTFILE=fithesis3.zip
+LATEXFILES=$(CLASSFILES) $(RESOURCES)
+TEXLIVEDIR=$(shell kpsewhich -var-value TEXMFLOCAL)
+
+# This pseudo-target creates the class files, typesets the
+# technical documentation, makes the style and locale files
+# and removes any auxiliary files.
+all:
+	for dir in $(SUBMAKEFILES); do make all -C "$$dir"; done
+	make explode clean
+
+# This pseudo-target creates the class files and typesets
+# the technical documentation.
+explode: fithesis3.cls $(PDFFILES)
+
+# This pseudo-target performs the unit tests
+test: all
+	cd test; make
+
+# This pseudo-target creates the distribution archives.
+dist: all $(TDSFILE) $(DISTFILE)
+
+# This target creates the class files.
+fithesis3.cls: fithesis.ins fithesis.dtx
+	tex $<
+
+# This target typesets the technical documentation.
+fithesis.pdf: $(DTXFILES)
+	pdflatex $<
+	makeindex -s gind.ist fithesis
+	makeindex -s gglo.ist -o fithesis.gls fithesis.glo
+	pdflatex $<
+	pdflatex $<
+
+# This target generates a TeX directory structure file
+$(TDSFILE): $(LATEXFILES) $(SOURCEFILES) $(PDFFILES) $(PDFSOURCES)
+	DIR=`mktemp -d` && \
+	make install to="$$DIR" nohash=true && \
+  (cd "$$DIR" && zip -r -v -nw $@ *) && \
+	mv "$$DIR"/$@ $@ && rm -rf "$$DIR"
+
+# This target generates a distribution file
+$(DISTFILE): $(LATEXFILES) $(SOURCEFILES) $(MAKEFILES) $(PDFFILES) $(PDFSOURCES)
+	DIR=`mktemp -d` && mkdir "$$DIR/fithesis3" && \
+	cp --verbose $(TDSFILE) "$$DIR" && \
+	cp --parents --verbose $^ "$$DIR/fithesis3" && \
+  (cd "$$DIR" && zip -r -v -nw $@ *) && \
+	mv "$$DIR"/$@ $@ && rm -rf "$$DIR"
+
+# This pseudo-target installs the class files and
+# the technical documentation into the TeX directory
+# structure, whose root directory is specified within
+# the "to" argument. Specify "nohash=true", if you wish
+# to forgo the reindexing of the package database.
+install:
+	@if [ -z "$(to)" ]; then \
+	  printf "Usage: make install to=DIRECTORY\nDetected TeXLive directory: %s\n" $(TEXLIVEDIR); \
+	  exit 1; \
+	fi
+	
+	# Class, locale, style and logo files
+	mkdir --parents "$(to)/tex/latex/fithesis3"
+	cp --parents --verbose $(LATEXFILES) "$(to)/tex/latex/fithesis3"
+	
+	# Source files
+	mkdir --parents "$(to)/source/latex/fithesis3"
+	cp --parents --verbose $(SOURCEFILES) "$(to)/source/latex/fithesis3"
+	
+	# Documentation
+	mkdir --parents "$(to)/doc/latex/fithesis3"
+	cp $(MANUAL) "$(to)/doc/latex/fithesis3/manual.pdf"
+
+	# Rebuild the hash
+	[ "$(nohash)" = "true" ] || texhash
+
+# This pseudo-target installs the class files and
+# the technical documentation into the TeX directory
+# structure, whose root directory is specified within
+# the "to" argument. Specify "nohash=true", if you wish
+# to forgo the reindexing of the package database.
+uninstall:
+	@if [ -z "$(from)" ]; then \
+	  printf "Usage: make uninstall from=DIRECTORY\nDetected TeXLive directory: %s\n" $(TEXLIVEDIR); \
+	  exit 1; \
+	fi
+	
+	# Class, locale, style and logo files
+	rm -rf "$(from)/tex/latex/fithesis3"
+	
+	# Source files
+	rm -rf "$(from)/source/latex/fithesis3"
+	
+	# Documentation
+	rm "$(from)/doc/latex/fithesis3/manual.pdf"
+	rmdir "$(from)/doc/latex/fithesis3/"
+
+	# Rebuild the hash
+	[ "$(nohash)" = "true" ] || texhash
+
+# This pseudo-target removes any existing auxiliary files.
+clean:
+	rm -f $(AUXFILES)
+
+# This pseudo-target removes the distribution archives.
+dist-clean:
+	rm -f $(DISTFILE) $(TDSFILE)
+
+# This pseudo-target removes any makeable files.
+implode: clean dist-clean
+	rm -f $(PDFFILES) $(CLASSFILES)
+	for dir in $(SUBMAKEFILES); do make implode -C "$$dir"; done
diff --git a/docstrip.cfg b/fithesis3/docstrip.cfg
similarity index 100%
rename from docstrip.cfg
rename to fithesis3/docstrip.cfg
diff --git a/fithesis.dtx b/fithesis3/fithesis.dtx
similarity index 100%
rename from fithesis.dtx
rename to fithesis3/fithesis.dtx
diff --git a/fithesis.ins b/fithesis3/fithesis.ins
similarity index 100%
rename from fithesis.ins
rename to fithesis3/fithesis.ins
diff --git a/locale/Makefile b/fithesis3/locale/Makefile
similarity index 100%
rename from locale/Makefile
rename to fithesis3/locale/Makefile
diff --git a/locale/czech.dtx b/fithesis3/locale/czech.dtx
similarity index 100%
rename from locale/czech.dtx
rename to fithesis3/locale/czech.dtx
diff --git a/locale/czech.ins b/fithesis3/locale/czech.ins
similarity index 100%
rename from locale/czech.ins
rename to fithesis3/locale/czech.ins
diff --git a/locale/english.dtx b/fithesis3/locale/english.dtx
similarity index 100%
rename from locale/english.dtx
rename to fithesis3/locale/english.dtx
diff --git a/locale/english.ins b/fithesis3/locale/english.ins
similarity index 100%
rename from locale/english.ins
rename to fithesis3/locale/english.ins
diff --git a/locale/slovak.dtx b/fithesis3/locale/slovak.dtx
similarity index 100%
rename from locale/slovak.dtx
rename to fithesis3/locale/slovak.dtx
diff --git a/locale/slovak.ins b/fithesis3/locale/slovak.ins
similarity index 100%
rename from locale/slovak.ins
rename to fithesis3/locale/slovak.ins
diff --git a/logo/mu/Makefile b/fithesis3/logo/mu/Makefile
similarity index 100%
rename from logo/mu/Makefile
rename to fithesis3/logo/mu/Makefile
diff --git a/logo/mu/base.eps b/fithesis3/logo/mu/base.eps
similarity index 100%
rename from logo/mu/base.eps
rename to fithesis3/logo/mu/base.eps
diff --git a/logo/mu/color/.gitignore b/fithesis3/logo/mu/color/.gitignore
similarity index 100%
rename from logo/mu/color/.gitignore
rename to fithesis3/logo/mu/color/.gitignore
diff --git a/logo/mu/color/Makefile b/fithesis3/logo/mu/color/Makefile
similarity index 100%
rename from logo/mu/color/Makefile
rename to fithesis3/logo/mu/color/Makefile
diff --git a/logo/mu/color/base.eps b/fithesis3/logo/mu/color/base.eps
similarity index 100%
rename from logo/mu/color/base.eps
rename to fithesis3/logo/mu/color/base.eps
diff --git a/logo/mu/color/econ.eps b/fithesis3/logo/mu/color/econ.eps
similarity index 100%
rename from logo/mu/color/econ.eps
rename to fithesis3/logo/mu/color/econ.eps
diff --git a/logo/mu/color/fi.eps b/fithesis3/logo/mu/color/fi.eps
similarity index 100%
rename from logo/mu/color/fi.eps
rename to fithesis3/logo/mu/color/fi.eps
diff --git a/logo/mu/color/fsps.eps b/fithesis3/logo/mu/color/fsps.eps
similarity index 100%
rename from logo/mu/color/fsps.eps
rename to fithesis3/logo/mu/color/fsps.eps
diff --git a/logo/mu/color/fss.eps b/fithesis3/logo/mu/color/fss.eps
similarity index 100%
rename from logo/mu/color/fss.eps
rename to fithesis3/logo/mu/color/fss.eps
diff --git a/logo/mu/color/law.eps b/fithesis3/logo/mu/color/law.eps
similarity index 100%
rename from logo/mu/color/law.eps
rename to fithesis3/logo/mu/color/law.eps
diff --git a/logo/mu/color/med.eps b/fithesis3/logo/mu/color/med.eps
similarity index 100%
rename from logo/mu/color/med.eps
rename to fithesis3/logo/mu/color/med.eps
diff --git a/logo/mu/color/ped.eps b/fithesis3/logo/mu/color/ped.eps
similarity index 100%
rename from logo/mu/color/ped.eps
rename to fithesis3/logo/mu/color/ped.eps
diff --git a/logo/mu/color/phil.eps b/fithesis3/logo/mu/color/phil.eps
similarity index 100%
rename from logo/mu/color/phil.eps
rename to fithesis3/logo/mu/color/phil.eps
diff --git a/logo/mu/color/sci.eps b/fithesis3/logo/mu/color/sci.eps
similarity index 100%
rename from logo/mu/color/sci.eps
rename to fithesis3/logo/mu/color/sci.eps
diff --git a/logo/mu/econ.eps b/fithesis3/logo/mu/econ.eps
similarity index 100%
rename from logo/mu/econ.eps
rename to fithesis3/logo/mu/econ.eps
diff --git a/logo/mu/fi.eps b/fithesis3/logo/mu/fi.eps
similarity index 100%
rename from logo/mu/fi.eps
rename to fithesis3/logo/mu/fi.eps
diff --git a/logo/mu/fsps.eps b/fithesis3/logo/mu/fsps.eps
similarity index 100%
rename from logo/mu/fsps.eps
rename to fithesis3/logo/mu/fsps.eps
diff --git a/logo/mu/fss.eps b/fithesis3/logo/mu/fss.eps
similarity index 100%
rename from logo/mu/fss.eps
rename to fithesis3/logo/mu/fss.eps
diff --git a/logo/mu/law.eps b/fithesis3/logo/mu/law.eps
similarity index 100%
rename from logo/mu/law.eps
rename to fithesis3/logo/mu/law.eps
diff --git a/logo/mu/med.eps b/fithesis3/logo/mu/med.eps
similarity index 100%
rename from logo/mu/med.eps
rename to fithesis3/logo/mu/med.eps
diff --git a/logo/mu/ped.eps b/fithesis3/logo/mu/ped.eps
similarity index 100%
rename from logo/mu/ped.eps
rename to fithesis3/logo/mu/ped.eps
diff --git a/logo/mu/phil.eps b/fithesis3/logo/mu/phil.eps
similarity index 100%
rename from logo/mu/phil.eps
rename to fithesis3/logo/mu/phil.eps
diff --git a/logo/mu/sci.eps b/fithesis3/logo/mu/sci.eps
similarity index 100%
rename from logo/mu/sci.eps
rename to fithesis3/logo/mu/sci.eps
diff --git a/style/Makefile b/fithesis3/style/Makefile
similarity index 100%
rename from style/Makefile
rename to fithesis3/style/Makefile
diff --git a/style/base.dtx b/fithesis3/style/base.dtx
similarity index 100%
rename from style/base.dtx
rename to fithesis3/style/base.dtx
diff --git a/style/base.ins b/fithesis3/style/base.ins
similarity index 100%
rename from style/base.ins
rename to fithesis3/style/base.ins
diff --git a/style/mu/Makefile b/fithesis3/style/mu/Makefile
similarity index 100%
rename from style/mu/Makefile
rename to fithesis3/style/mu/Makefile
diff --git a/style/mu/base.dtx b/fithesis3/style/mu/base.dtx
similarity index 100%
rename from style/mu/base.dtx
rename to fithesis3/style/mu/base.dtx
diff --git a/style/mu/base.ins b/fithesis3/style/mu/base.ins
similarity index 100%
rename from style/mu/base.ins
rename to fithesis3/style/mu/base.ins
diff --git a/style/mu/econ.dtx b/fithesis3/style/mu/econ.dtx
similarity index 100%
rename from style/mu/econ.dtx
rename to fithesis3/style/mu/econ.dtx
diff --git a/style/mu/econ.ins b/fithesis3/style/mu/econ.ins
similarity index 100%
rename from style/mu/econ.ins
rename to fithesis3/style/mu/econ.ins
diff --git a/style/mu/fi.dtx b/fithesis3/style/mu/fi.dtx
similarity index 100%
rename from style/mu/fi.dtx
rename to fithesis3/style/mu/fi.dtx
diff --git a/style/mu/fi.ins b/fithesis3/style/mu/fi.ins
similarity index 100%
rename from style/mu/fi.ins
rename to fithesis3/style/mu/fi.ins
diff --git a/style/mu/fsps.dtx b/fithesis3/style/mu/fsps.dtx
similarity index 100%
rename from style/mu/fsps.dtx
rename to fithesis3/style/mu/fsps.dtx
diff --git a/style/mu/fsps.ins b/fithesis3/style/mu/fsps.ins
similarity index 100%
rename from style/mu/fsps.ins
rename to fithesis3/style/mu/fsps.ins
diff --git a/style/mu/fss.dtx b/fithesis3/style/mu/fss.dtx
similarity index 100%
rename from style/mu/fss.dtx
rename to fithesis3/style/mu/fss.dtx
diff --git a/style/mu/fss.ins b/fithesis3/style/mu/fss.ins
similarity index 100%
rename from style/mu/fss.ins
rename to fithesis3/style/mu/fss.ins
diff --git a/style/mu/law.dtx b/fithesis3/style/mu/law.dtx
similarity index 100%
rename from style/mu/law.dtx
rename to fithesis3/style/mu/law.dtx
diff --git a/style/mu/law.ins b/fithesis3/style/mu/law.ins
similarity index 100%
rename from style/mu/law.ins
rename to fithesis3/style/mu/law.ins
diff --git a/style/mu/med.dtx b/fithesis3/style/mu/med.dtx
similarity index 100%
rename from style/mu/med.dtx
rename to fithesis3/style/mu/med.dtx
diff --git a/style/mu/med.ins b/fithesis3/style/mu/med.ins
similarity index 100%
rename from style/mu/med.ins
rename to fithesis3/style/mu/med.ins
diff --git a/style/mu/ped.dtx b/fithesis3/style/mu/ped.dtx
similarity index 100%
rename from style/mu/ped.dtx
rename to fithesis3/style/mu/ped.dtx
diff --git a/style/mu/ped.ins b/fithesis3/style/mu/ped.ins
similarity index 100%
rename from style/mu/ped.ins
rename to fithesis3/style/mu/ped.ins
diff --git a/style/mu/phil.dtx b/fithesis3/style/mu/phil.dtx
similarity index 100%
rename from style/mu/phil.dtx
rename to fithesis3/style/mu/phil.dtx
diff --git a/style/mu/phil.ins b/fithesis3/style/mu/phil.ins
similarity index 100%
rename from style/mu/phil.ins
rename to fithesis3/style/mu/phil.ins
diff --git a/style/mu/sci.dtx b/fithesis3/style/mu/sci.dtx
similarity index 100%
rename from style/mu/sci.dtx
rename to fithesis3/style/mu/sci.dtx
diff --git a/style/mu/sci.ins b/fithesis3/style/mu/sci.ins
similarity index 100%
rename from style/mu/sci.ins
rename to fithesis3/style/mu/sci.ins
diff --git a/test/Makefile b/fithesis3/test/Makefile
similarity index 100%
rename from test/Makefile
rename to fithesis3/test/Makefile
diff --git a/test/base-10pt.tex b/fithesis3/test/base-10pt.tex
similarity index 100%
rename from test/base-10pt.tex
rename to fithesis3/test/base-10pt.tex
diff --git a/test/base-11pt.tex b/fithesis3/test/base-11pt.tex
similarity index 100%
rename from test/base-11pt.tex
rename to fithesis3/test/base-11pt.tex
diff --git a/test/base-12pt.tex b/fithesis3/test/base-12pt.tex
similarity index 100%
rename from test/base-12pt.tex
rename to fithesis3/test/base-12pt.tex
diff --git a/test/base-utf8.tex b/fithesis3/test/base-utf8.tex
similarity index 100%
rename from test/base-utf8.tex
rename to fithesis3/test/base-utf8.tex
diff --git a/test/econ-czech.tex b/fithesis3/test/econ-czech.tex
similarity index 100%
rename from test/econ-czech.tex
rename to fithesis3/test/econ-czech.tex
diff --git a/test/econ-english.tex b/fithesis3/test/econ-english.tex
similarity index 100%
rename from test/econ-english.tex
rename to fithesis3/test/econ-english.tex
diff --git a/test/econ-slovak.tex b/fithesis3/test/econ-slovak.tex
similarity index 100%
rename from test/econ-slovak.tex
rename to fithesis3/test/econ-slovak.tex
diff --git a/test/fi-color.tex b/fithesis3/test/fi-color.tex
similarity index 100%
rename from test/fi-color.tex
rename to fithesis3/test/fi-color.tex
diff --git a/test/fi-czech.tex b/fithesis3/test/fi-czech.tex
similarity index 100%
rename from test/fi-czech.tex
rename to fithesis3/test/fi-czech.tex
diff --git a/test/fi-english.tex b/fithesis3/test/fi-english.tex
similarity index 100%
rename from test/fi-english.tex
rename to fithesis3/test/fi-english.tex
diff --git a/test/fi-female.tex b/fithesis3/test/fi-female.tex
similarity index 100%
rename from test/fi-female.tex
rename to fithesis3/test/fi-female.tex
diff --git a/test/fi-male.tex b/fithesis3/test/fi-male.tex
similarity index 100%
rename from test/fi-male.tex
rename to fithesis3/test/fi-male.tex
diff --git a/test/fi-rigorous.tex b/fithesis3/test/fi-rigorous.tex
similarity index 100%
rename from test/fi-rigorous.tex
rename to fithesis3/test/fi-rigorous.tex
diff --git a/test/fi-slovak.tex b/fithesis3/test/fi-slovak.tex
similarity index 100%
rename from test/fi-slovak.tex
rename to fithesis3/test/fi-slovak.tex
diff --git a/test/fsps-czech.tex b/fithesis3/test/fsps-czech.tex
similarity index 100%
rename from test/fsps-czech.tex
rename to fithesis3/test/fsps-czech.tex
diff --git a/test/fsps-english.tex b/fithesis3/test/fsps-english.tex
similarity index 100%
rename from test/fsps-english.tex
rename to fithesis3/test/fsps-english.tex
diff --git a/test/fsps-slovak.tex b/fithesis3/test/fsps-slovak.tex
similarity index 100%
rename from test/fsps-slovak.tex
rename to fithesis3/test/fsps-slovak.tex
diff --git a/test/fss-czech.tex b/fithesis3/test/fss-czech.tex
similarity index 100%
rename from test/fss-czech.tex
rename to fithesis3/test/fss-czech.tex
diff --git a/test/fss-english.tex b/fithesis3/test/fss-english.tex
similarity index 100%
rename from test/fss-english.tex
rename to fithesis3/test/fss-english.tex
diff --git a/test/fss-slovak.tex b/fithesis3/test/fss-slovak.tex
similarity index 100%
rename from test/fss-slovak.tex
rename to fithesis3/test/fss-slovak.tex
diff --git a/test/law-czech.tex b/fithesis3/test/law-czech.tex
similarity index 100%
rename from test/law-czech.tex
rename to fithesis3/test/law-czech.tex
diff --git a/test/law-english.tex b/fithesis3/test/law-english.tex
similarity index 100%
rename from test/law-english.tex
rename to fithesis3/test/law-english.tex
diff --git a/test/law-slovak.tex b/fithesis3/test/law-slovak.tex
similarity index 100%
rename from test/law-slovak.tex
rename to fithesis3/test/law-slovak.tex
diff --git a/test/med-czech.tex b/fithesis3/test/med-czech.tex
similarity index 100%
rename from test/med-czech.tex
rename to fithesis3/test/med-czech.tex
diff --git a/test/med-english.tex b/fithesis3/test/med-english.tex
similarity index 100%
rename from test/med-english.tex
rename to fithesis3/test/med-english.tex
diff --git a/test/med-slovak.tex b/fithesis3/test/med-slovak.tex
similarity index 100%
rename from test/med-slovak.tex
rename to fithesis3/test/med-slovak.tex
diff --git a/test/ped-czech.tex b/fithesis3/test/ped-czech.tex
similarity index 100%
rename from test/ped-czech.tex
rename to fithesis3/test/ped-czech.tex
diff --git a/test/ped-english.tex b/fithesis3/test/ped-english.tex
similarity index 100%
rename from test/ped-english.tex
rename to fithesis3/test/ped-english.tex
diff --git a/test/ped-slovak.tex b/fithesis3/test/ped-slovak.tex
similarity index 100%
rename from test/ped-slovak.tex
rename to fithesis3/test/ped-slovak.tex
diff --git a/test/phil-czech.tex b/fithesis3/test/phil-czech.tex
similarity index 100%
rename from test/phil-czech.tex
rename to fithesis3/test/phil-czech.tex
diff --git a/test/phil-english.tex b/fithesis3/test/phil-english.tex
similarity index 100%
rename from test/phil-english.tex
rename to fithesis3/test/phil-english.tex
diff --git a/test/phil-slovak.tex b/fithesis3/test/phil-slovak.tex
similarity index 100%
rename from test/phil-slovak.tex
rename to fithesis3/test/phil-slovak.tex
diff --git a/test/sci-color.tex b/fithesis3/test/sci-color.tex
similarity index 100%
rename from test/sci-color.tex
rename to fithesis3/test/sci-color.tex
diff --git a/test/sci-female.tex b/fithesis3/test/sci-female.tex
similarity index 100%
rename from test/sci-female.tex
rename to fithesis3/test/sci-female.tex
diff --git a/test/sci-male.tex b/fithesis3/test/sci-male.tex
similarity index 100%
rename from test/sci-male.tex
rename to fithesis3/test/sci-male.tex
diff --git a/test/sci-rigorous.tex b/fithesis3/test/sci-rigorous.tex
similarity index 100%
rename from test/sci-rigorous.tex
rename to fithesis3/test/sci-rigorous.tex
-- 
GitLab