Linux/FreeBSD: change location of documentation from /usr/share/veracrypt/doc to the standard /usr/share/doc/veracrypt

This commit is contained in:
Mounir IDRASSI 2019-10-06 13:28:50 +02:00
parent be6c817873
commit a4145721a7
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F
4 changed files with 6 additions and 4 deletions

View File

@ -1309,7 +1309,7 @@ namespace VeraCrypt
#elif defined (TC_MACOSX) #elif defined (TC_MACOSX)
htmlPath += L"/../Resources/doc/HTML/"; htmlPath += L"/../Resources/doc/HTML/";
#elif defined (TC_UNIX) #elif defined (TC_UNIX)
htmlPath = L"/usr/share/veracrypt/doc/HTML/"; htmlPath = L"/usr/share/doc/veracrypt/HTML/";
#else #else
localFile = false; localFile = false;
#endif #endif

View File

@ -286,12 +286,12 @@ ifeq "$(PLATFORM)" "FreeBSD"
prepare: $(APPNAME) prepare: $(APPNAME)
rm -fr $(BASE_DIR)/Setup/FreeBSD/usr rm -fr $(BASE_DIR)/Setup/FreeBSD/usr
mkdir -p $(BASE_DIR)/Setup/FreeBSD/usr/bin mkdir -p $(BASE_DIR)/Setup/FreeBSD/usr/bin
mkdir -p $(BASE_DIR)/Setup/FreeBSD/usr/share/$(APPNAME)/doc/HTML mkdir -p $(BASE_DIR)/Setup/FreeBSD/usr/share/doc/$(APPNAME)/HTML
cp $(BASE_DIR)/Main/$(APPNAME) $(BASE_DIR)/Setup/FreeBSD/usr/bin/$(APPNAME) cp $(BASE_DIR)/Main/$(APPNAME) $(BASE_DIR)/Setup/FreeBSD/usr/bin/$(APPNAME)
cp $(BASE_DIR)/Setup/Linux/$(APPNAME)-uninstall.sh $(BASE_DIR)/Setup/FreeBSD/usr/bin/$(APPNAME)-uninstall.sh cp $(BASE_DIR)/Setup/Linux/$(APPNAME)-uninstall.sh $(BASE_DIR)/Setup/FreeBSD/usr/bin/$(APPNAME)-uninstall.sh
chmod +x $(BASE_DIR)/Setup/FreeBSD/usr/bin/$(APPNAME)-uninstall.sh chmod +x $(BASE_DIR)/Setup/FreeBSD/usr/bin/$(APPNAME)-uninstall.sh
cp $(BASE_DIR)/License.txt $(BASE_DIR)/Setup/FreeBSD/usr/share/$(APPNAME)/doc/License.txt cp $(BASE_DIR)/License.txt $(BASE_DIR)/Setup/FreeBSD/usr/share/doc/$(APPNAME)/License.txt
cp $(BASE_DIR)/../doc/html/* "$(BASE_DIR)/Setup/FreeBSD/usr/share/$(APPNAME)/doc/HTML" cp $(BASE_DIR)/../doc/html/* "$(BASE_DIR)/Setup/FreeBSD/usr/share/doc/$(APPNAME)/HTML"
ifndef TC_NO_GUI ifndef TC_NO_GUI
mkdir -p $(BASE_DIR)/Setup/FreeBSD/usr/share/applications mkdir -p $(BASE_DIR)/Setup/FreeBSD/usr/share/applications

View File

@ -6,6 +6,7 @@ rm -f /usr/bin/veracrypt
rm -f /usr/share/applications/veracrypt.desktop rm -f /usr/share/applications/veracrypt.desktop
rm -f /usr/share/pixmaps/veracrypt.xpm rm -f /usr/share/pixmaps/veracrypt.xpm
rm -fr /usr/share/veracrypt rm -fr /usr/share/veracrypt
rm -fr /usr/share/doc/veracrypt
echo VeraCrypt uninstalled. echo VeraCrypt uninstalled.
rm -f /usr/bin/veracrypt-uninstall.sh rm -f /usr/bin/veracrypt-uninstall.sh

View File

@ -6,6 +6,7 @@ rm -f /usr/bin/veracrypt
rm -f /usr/share/applications/veracrypt.desktop rm -f /usr/share/applications/veracrypt.desktop
rm -f /usr/share/pixmaps/veracrypt.xpm rm -f /usr/share/pixmaps/veracrypt.xpm
rm -fr /usr/share/veracrypt rm -fr /usr/share/veracrypt
rm -fr /usr/share/doc/veracrypt
echo VeraCrypt uninstalled. echo VeraCrypt uninstalled.
rm -f /usr/bin/veracrypt-uninstall.sh rm -f /usr/bin/veracrypt-uninstall.sh