aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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 !'