aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorache <ache@ache.one>2021-09-05 01:15:32 +0200
committerache <ache@ache.one>2021-09-05 01:21:43 +0200
commit17c4a7ebd412feecd2bd59f2d8ef5be709c9fb81 (patch)
tree4a36f31b1d510513c95c55398165bbb243f27631 /Makefile
parentLast rename dicofr => dfr (diff)
Last rename dicofr => dfr
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ab4165e..4dd9a31 100644
--- a/Makefile
+++ b/Makefile
@@ -14,18 +14,18 @@ install:
cp -r download ${DIR_INSTALL_PATH}/download
cp -r assets ${DIR_INSTALL_PATH}/assets
@[ -f frwiktionary-latest-pages-meta-current.xml.bz2 ] && \
- cp -u frwiktionary-latest-pages-meta-current.xml.bz2 ${DIR_INSTALL_PATH}/
+ cp -u frwiktionary-latest-pages-meta-current.xml.bz2 ${DIR_INSTALL_PATH}/ || true
#
# Disabled DEBUG in production
sed -i 's/DEBUG = True/DEBUG = False/' ${DIR_INSTALL_PATH}/*.py
# Get the external assets if needed
cd ${DIR_INSTALL_PATH}; python ${DIR_INSTALL_PATH}/download/download.py -d -o "${DIR_INSTALL_PATH}/assets/dfr.db"
# Set permission and install command
- chmod +x ${DIR_INSTALL_PATH}/dicofr.py
+ chmod +x ${DIR_INSTALL_PATH}/dfr.py
# delete symlink if it exists
[ -h ${DIR_BIN}/dfr ] && unlink ${DIR_BIN}/dfr
# create it
- ln -s ${DIR_INSTALL_PATH}/dicofr.py ${DIR_BIN}/dfr
+ ln -s ${DIR_INSTALL_PATH}/dfr.py ${DIR_BIN}/dfr
chmod +x ${DIR_BIN}/dfr
@echo 'Enjoy dfr !'