Open zuphilip opened 4 years ago
I am not sure that we need git submodules with which a lot of people also struggle to use. Moreover, this would only bee a partial update mechanism because we also directly install from a release (e.g. JPageConverter) or download from a website (e.g. Saxon).
Thus, I think we need a proper update mechanism in the Makefile. This then should check first for new code of ocr-fileformat and taking into account that there are git-installations as well as installations for the latest release. Afterwards possible updated packages from the vendor should be loaded. This maybe can been done with make realclean
and then make install
again. Maybe there are smarter ways to do it as well w/o downloading potentially the same files again.
Thus, I think we need a proper update mechanism in the Makefile.
Easiest solution: clone the repository depth-1 to a tempdirectory, uninstall, reinstall. It's less efficient, but the cleanest.
I am not sure that we need git submodules with which a lot of people also struggle to use. Moreover, this would only bee a partial update mechanism because we also directly install from a release (e.g. JPageConverter) or download from a website (e.g. Saxon).
Yes, but both can be managed via make. And that's exactly what since has been done.
Thus, I think we need a proper update mechanism in the Makefile. This then should check first for new code of ocr-fileformat and taking into account that there are git-installations as well as installations for the latest release. Afterwards possible updated packages from the vendor should be loaded. This maybe can been done with
make realclean
and thenmake install
again. Maybe there are smarter ways to do it as well w/o downloading potentially the same files again.
The process for updating is now as simple as:
git pull
make install # will also git submodule update
Can be closed IIUC.
Originally posted by @stweil in https://github.com/UB-Mannheim/ocr-fileformat/pull/106#issuecomment-570098548