forked from minhngoc25a/freetype2
Move `scripts/make_distribution_archives.py` to `src/tools`.
* scr/tools/scripts/make_distribution_archives.py: (_TOP_DIR, _SCRIPT_DIR): Updated to new location. (main): s/shutils.copyfile/shutils.copy/ to preserve file permissions. (main): Prefix source file paths with `git_dir` while copying files to allow calls of the script from other places than the top-level directory.
This commit is contained in:
parent
4f13a43ab3
commit
e8ee98e669
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
||||||
|
2020-09-25 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
Move `scripts/make_distribution_archives.py` to `src/tools`.
|
||||||
|
|
||||||
|
* scr/tools/scripts/make_distribution_archives.py: (_TOP_DIR,
|
||||||
|
_SCRIPT_DIR): Updated to new location.
|
||||||
|
(main): s/shutils.copyfile/shutils.copy/ to preserve file
|
||||||
|
permissions.
|
||||||
|
(main): Prefix source file paths with `git_dir` while copying files
|
||||||
|
to allow calls of the script from other places than the top-level
|
||||||
|
directory.
|
||||||
|
|
||||||
2020-09-24 Werner Lemberg <wl@gnu.org>
|
2020-09-24 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
* src/cff/cffgload.c (cff_slot_load): Scale `vertBearingY`.
|
* src/cff/cffgload.c (cff_slot_load): Scale `vertBearingY`.
|
||||||
|
|
|
@ -11,8 +11,8 @@ import subprocess
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
_SCRIPT_DIR = os.path.dirname(__file__)
|
_TOP_DIR = os.path.abspath(os.path.join(__file__, "..", "..", ".."))
|
||||||
_TOP_DIR = os.path.abspath(os.path.join(_SCRIPT_DIR, ".."))
|
_SCRIPT_DIR = os.path.dirname(os.path.join(_TOP_DIR, "builds", "meson", ""))
|
||||||
|
|
||||||
|
|
||||||
def get_cmd_output(cmd, cwd=None):
|
def get_cmd_output(cmd, cwd=None):
|
||||||
|
@ -135,7 +135,7 @@ def main():
|
||||||
dst_dir = os.path.dirname(dst)
|
dst_dir = os.path.dirname(dst)
|
||||||
if not os.path.exists(dst_dir):
|
if not os.path.exists(dst_dir):
|
||||||
os.makedirs(dst_dir)
|
os.makedirs(dst_dir)
|
||||||
shutil.copyfile(src, dst)
|
shutil.copy(os.path.join(git_dir, src), dst)
|
||||||
|
|
||||||
# Run autogen.sh in directory.
|
# Run autogen.sh in directory.
|
||||||
subprocess.check_call(["/bin/sh", "autogen.sh"], cwd=tmp_src_dir)
|
subprocess.check_call(["/bin/sh", "autogen.sh"], cwd=tmp_src_dir)
|
||||||
|
@ -146,7 +146,7 @@ def main():
|
||||||
# Copy config.guess and config.sub if possible!
|
# Copy config.guess and config.sub if possible!
|
||||||
if args.gnu_config_dir:
|
if args.gnu_config_dir:
|
||||||
for f in ("config.guess", "config.sub"):
|
for f in ("config.guess", "config.sub"):
|
||||||
shutil.copyfile(
|
shutil.copy(
|
||||||
os.path.join(args.gnu_config_dir, f),
|
os.path.join(args.gnu_config_dir, f),
|
||||||
os.path.join(tmp_src_dir, "builds", "unix", f),
|
os.path.join(tmp_src_dir, "builds", "unix", f),
|
||||||
)
|
)
|
||||||
|
@ -196,7 +196,7 @@ def main():
|
||||||
freetype_tar + ".xz",
|
freetype_tar + ".xz",
|
||||||
ftwinversion + ".zip",
|
ftwinversion + ".zip",
|
||||||
):
|
):
|
||||||
shutil.copyfile(
|
shutil.copy(
|
||||||
os.path.join(build_dir, f), os.path.join(args.output_dir, f)
|
os.path.join(build_dir, f), os.path.join(args.output_dir, f)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue