Windows sys/meson.py: Add r2 shell script (#16753)

This commit is contained in:
Khairul Azhar Kasmiran 2020-05-03 00:54:01 +08:00 committed by GitHub
parent d7258113d9
commit dbd33d0efe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -172,6 +172,11 @@ def win_dist(args):
with open(r2_bat_fname, 'w') as r2_bat:
r2_bat.write('@"%~dp0\\radare2" %*\n')
r2_sh_fname = args.install + r'\bin\r2'
log.debug('create "%s"', r2_sh_fname)
with open(r2_sh_fname, 'w') as r2_sh:
r2_sh.write('#!/bin/sh\n$(dirname "$0")/radare2 "$@"\n')
copy(r'{BUILDDIR}\libr\*\*.dll', r'{DIST}\bin')
makedirs(r'{DIST}\{R2_LIBDIR}')
if args.shared: