mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-05 06:13:50 +02:00
More robust copying of terminfo
Dont use symlinks in the tarball, instead create them in the bootstrap scripts, only if needed.
This commit is contained in:
@@ -121,6 +121,10 @@ def compile_terminfo(base):
|
||||
if cp.returncode != 0:
|
||||
sys.stderr.buffer.write(cp.stdout)
|
||||
raise SystemExit('Failed to compile the terminfo database')
|
||||
q = os.path.join(base, tname, '78', 'xterm-kitty')
|
||||
if not os.path.exists(q):
|
||||
os.makedirs(os.path.dirname(q), exist_ok=True)
|
||||
os.symlink("../x/xterm-kitty", q)
|
||||
|
||||
|
||||
def get_data():
|
||||
|
||||
@@ -201,6 +201,12 @@ compile_terminfo() {
|
||||
tic_out=$(command tic -x -o "$1/$tname" "$1/.terminfo/kitty.terminfo" 2>&1)
|
||||
[ $? = 0 ] || die "Failed to compile terminfo with err: $tic_out";
|
||||
fi
|
||||
|
||||
# Ensure the 78 dir is present
|
||||
if [ ! -f "$1/$tname/78/xterm-kitty" ]; then
|
||||
command mkdir -p "$1/$tname/78"
|
||||
command ln -sf "../x/xterm-kitty" "$1/$tname/78/xterm-kitty"
|
||||
fi
|
||||
}
|
||||
|
||||
untar_and_read_env() {
|
||||
|
||||
Reference in New Issue
Block a user