diff --git a/.gitignore b/.gitignore index 93da9b9..1c53512 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ dict/aux.txt *.dat *.idx *.oxt +results/ diff --git a/build-oxt.py b/build-oxt.py index 1a825df..3e06b76 100755 --- a/build-oxt.py +++ b/build-oxt.py @@ -80,6 +80,11 @@ def parse_line(line): def generate_output(): + if os.path.exists(OUTPUT): + shutil.rmtree(OUTPUT, ignore_errors=True) + if not os.path.exists(OUTPUT): + os.mkdir(OUTPUT) + oxt_idx = 'UTF-8' + '\n' + str(len(wordlist)) + '\n' oxt_dat = 'UTF-8' + '\n' @@ -104,6 +109,7 @@ def generate_output(): shutil.copyfile(OUTPUT + filename + '.idx', OXT_DIR + OXT_NAME + '/dictionaries/' + filename + '.idx') shutil.copyfile(OUTPUT + filename + '.dat', OXT_DIR + OXT_NAME + '/dictionaries/' + filename + '.dat') + shutil.copyfile(OXT_DIR + OXT_NAME + '/README.txt', OUTPUT + '/README.txt') shutil.make_archive(OUTPUT + OXT_NAME, 'zip', OXT_DIR + OXT_NAME + '/') diff --git a/oxt/thesaurus-ca/README.txt b/oxt/thesaurus-ca/README.txt index 98a68ea..7725e53 100644 --- a/oxt/thesaurus-ca/README.txt +++ b/oxt/thesaurus-ca/README.txt @@ -9,7 +9,7 @@ _______________________________________________________________________________ Creative Commons CC-BY 4.0 https://creativecommons.org/licenses/by/4.0/ - Aquest tesaurus funciona en qualsevol programari que usi el motor mythes, + Aquest diccionari de sinònims funciona en qualsevol programari que usi el motor mythes, p. ex.: LibreOffice, OpenOffice.org 3.2+ Més informació: