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
|
||||
fi
|
||||
man -t documentation/dvdisaster.en.1 | ps2pdf - dist/dvdisaster.pdf
|
||||
cp CHANGELOG TODO dvdisaster documentation/dvdisaster.*.1 documentation/user-manual/manual.pdf dist/
|
||||
cp CREDITS.en dist/CREDITS
|
||||
cp CHANGELOG TODO COPYING CREDITS.* dvdisaster documentation/dvdisaster.*.1 documentation/user-manual/manual.pdf dist/
|
||||
if command -v zip >/dev/null; then
|
||||
mv dist ${archive/.zip/}
|
||||
zip -9r $archive ${archive/.zip/}
|
||||
|
||||
@@ -480,6 +480,18 @@ char *find_file(char *file, size_t *size, char *lang)
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user