fix: documentation path under Windows
This commit is contained in:
3
.github/workflows/make-dist.sh
vendored
3
.github/workflows/make-dist.sh
vendored
@@ -42,8 +42,7 @@ if [ "$os" != "linux64" ]; then
|
|||||||
find dist -type f -name "*.a" -delete
|
find dist -type f -name "*.a" -delete
|
||||||
fi
|
fi
|
||||||
man -t documentation/dvdisaster.en.1 | ps2pdf - dist/dvdisaster.pdf
|
man -t documentation/dvdisaster.en.1 | ps2pdf - dist/dvdisaster.pdf
|
||||||
cp CHANGELOG TODO dvdisaster documentation/dvdisaster.*.1 documentation/user-manual/manual.pdf dist/
|
cp CHANGELOG TODO COPYING CREDITS.* dvdisaster documentation/dvdisaster.*.1 documentation/user-manual/manual.pdf dist/
|
||||||
cp CREDITS.en dist/CREDITS
|
|
||||||
if command -v zip >/dev/null; then
|
if command -v zip >/dev/null; then
|
||||||
mv dist ${archive/.zip/}
|
mv dist ${archive/.zip/}
|
||||||
zip -9r $archive ${archive/.zip/}
|
zip -9r $archive ${archive/.zip/}
|
||||||
|
|||||||
@@ -480,6 +480,18 @@ char *find_file(char *file, size_t *size, char *lang)
|
|||||||
g_free(path);
|
g_free(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{ if(lang)
|
||||||
|
path = g_strdup_printf("%s.%s", file, lang_suffix);
|
||||||
|
else path = g_strdup_printf("%s", file);
|
||||||
|
|
||||||
|
if(LargeStat(path, &stat_size))
|
||||||
|
{ *size = stat_size;
|
||||||
|
return path;
|
||||||
|
}
|
||||||
|
|
||||||
|
g_free(path);
|
||||||
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user