fix data file inclusion in source distributions
This commit is contained in:
@@ -47,7 +47,7 @@ for action in option.build_parser()._actions:
|
||||
if opt.startswith("--"):
|
||||
opts.append(opt)
|
||||
|
||||
PATH = util.path("build/completion/gallery-dl")
|
||||
PATH = util.path("data/completion/gallery-dl")
|
||||
with open(PATH, "w", encoding="utf-8") as file:
|
||||
file.write(TEMPLATE % {
|
||||
"opts" : " ".join(opts),
|
||||
|
||||
@@ -99,7 +99,7 @@ and https://github.com/mikf/gallery-dl/graphs/contributors
|
||||
))
|
||||
|
||||
if not path:
|
||||
path = util.path("build/man/gallery-dl.1")
|
||||
path = util.path("data/man/gallery-dl.1")
|
||||
with open(path, "w", encoding="utf-8") as file:
|
||||
file.write(TEMPLATE.lstrip() % {
|
||||
"options": "\n".join(options),
|
||||
@@ -217,7 +217,7 @@ and https://github.com/mikf/gallery-dl/graphs/contributors
|
||||
content.append(strip_rst(text, field != "Example"))
|
||||
|
||||
if not path:
|
||||
path = util.path("build/man/gallery-dl.conf.5")
|
||||
path = util.path("data/man/gallery-dl.conf.5")
|
||||
with open(path, "w", encoding="utf-8") as file:
|
||||
file.write(TEMPLATE.lstrip() % {
|
||||
"options": "\n".join(content),
|
||||
|
||||
@@ -27,6 +27,7 @@ update() {
|
||||
|
||||
sed -i "s#\"${PYVERSION}\"#\"${NEWVERSION}\"#" "gallery_dl/version.py"
|
||||
sed -i "s#v${OLDVERSION}#v${NEWVERSION}#" "${README}"
|
||||
make man
|
||||
}
|
||||
|
||||
update-dev() {
|
||||
|
||||
Reference in New Issue
Block a user