diff --git a/makefile b/makefile index b140bf2..8bd4506 100644 --- a/makefile +++ b/makefile @@ -10,9 +10,11 @@ help: @echo "\nmake prepare-files" @echo " prepare the necessary files to work." @echo "\nmake install-pyrequirements" - @echo " install the Python requirements from requirements.txt." + @echo " install the Python requirements from requirements.txt." @echo "\nmake clean-pyc" @echo " clean all Python compiled bytecode files." + @echo "\nmake pywikibot" + @echo " CanaryBot is prepared to run on PAWS so it is unnecessary to configure Pywikibot since you configure it in PAWS correctly. But if you want to run CanaryBot outside PAWS (in your local computer) you need to execute this make instruction." all: prepare-files prepare-files prepare-duplicatedcsv install-pyrequirements clean-pyc @echo "\nCanaryBot has been prepared and configured." @@ -41,3 +43,12 @@ clean-pyc: @echo "\nDeleting all Python compiled bytecode files (.pyc and .pyo)." find . -name "*.pyc" -exec rm --force {} + find . -name "*.pyo" -exec rm --force {} + + +pywikibot: + @echo "\nClonning Pywikibot from its official repository..." + git clone --recursive https://gerrit.wikimedia.org/r/pywikibot/core.git + @echo "\nGenerating necessary files when the scripts are going to be out of PAWS" + python core/generate_user_files.py + @echo "\nLogging..." + python core/pwb.py login + @echo "\nPywikibot has been configured!"