Install scripts ##build

This commit is contained in:
pancake 2024-10-21 20:45:30 +02:00 committed by GitHub
parent 96f56e055f
commit b19e84948f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 28 additions and 7 deletions

View File

@ -150,6 +150,8 @@ windist:
cp -f libr/arch/d/*.r2 "${WINDIST}/share/radare2/${VERSION}/platform"
mkdir -p "${WINDIST}/share/radare2/${VERSION}/opcodes"
cp -f libr/asm/d/*.sdb "${WINDIST}/share/radare2/${VERSION}/opcodes"
mkdir -p "${WINDIST}/share/radare2/${VERSION}/scripts"
cp -f scripts/*.js scripts/*.py "${WINDIST}/share/radare2/${VERSION}/scripts"
mkdir -p "${WINDIST}/share/radare2/${VERSION}/flag"
cp -f libr/flag/d/*.r2 "${WINDIST}/share/radare2/${VERSION}/flag"
mkdir -p "${WINDIST}/share/doc/radare2"
@ -235,6 +237,9 @@ install: install-doc install-man install-www install-pkgconfig
for DIR in ${DATADIRS} ; do $(MAKE) -C "$$DIR" install ; done
cd "$(DESTDIR)$(LIBDIR)/radare2/" && rm -f last && ln -fs $(VERSION) last
cd "$(DESTDIR)$(DATADIR)/radare2/" && rm -f last && ln -fs $(VERSION) last
rm -rf "${DESTDIR}${DATADIR}/radare2/${VERSION}/scripts"
mkdir -p "${DESTDIR}${DATADIR}/radare2/${VERSION}/scripts"
cp -rf scripts/*.js scripts/*.py "${DESTDIR}${DATADIR}/radare2/${VERSION}/scripts"
rm -rf "${DESTDIR}${DATADIR}/radare2/${VERSION}/hud"
mkdir -p "${DESTDIR}${DATADIR}/radare2/${VERSION}/hud"
mkdir -p "${DESTDIR}${BINDIR}"
@ -280,6 +285,8 @@ symstall install-symlink: install-man-symlink install-doc-symlink install-pkgcon
cd shlr && ${MAKE} install-symlink
mkdir -p "${DESTDIR}${BINDIR}"
ln -fs "${PWD}/sys/indent.sh" "${DESTDIR}${BINDIR}/r2-indent"
rm -rf "${DESTDIR}${DATADIR}/radare2/${VERSION}/scripts"
ln -fs scripts "${DESTDIR}${DATADIR}/radare2/${VERSION}/scripts"
mkdir -p "${DESTDIR}${DATADIR}/radare2/${VERSION}/hud"
ln -fs "${PWD}/doc/hud" "${DESTDIR}${DATADIR}/radare2/${VERSION}/hud/main"
#mkdir -p "${DESTDIR}${DATADIR}/radare2/${VERSION}/flag"

View File

@ -8,7 +8,6 @@ radare2 contributes to the One Byte Per Child foundation.
3nl4r9e y0\/r r4d4r3
I did it for the pwnz.
If you send the program you are debugging to 15 friends in 143 minutes and then step three times on the same opcode you will get the name of the person who loves you.
To remove this message, put `dbxenv suppress_startup_message 7.5' in your .dbxrc
Heisenbug: A bug that disappears or alters its behavior when one attempts to probe or isolate it.
radare2 is for lulzhats
Microloft Visual Radare.NET 2008. Now OOXML Powered!

View File

@ -602,10 +602,10 @@ static const ut8 *parse_line_header_source(RBinFile *bf, const ut8 *buf, const u
include_dir = pinclude_dir = sdb_array_get (sdb, "includedirs", id_idx - 1, 0);
if (include_dir && include_dir[0] != '/') {
comp_dir_key = get_compilation_directory_key (debug_line_offset);
if (!comp_dir_key) {
comp_dir = sdb_get (bf->sdb_addrinfo, "DW_AT_comp_dir", 0);
} else {
if (comp_dir_key) {
comp_dir = sdb_get (bf->sdb_addrinfo, comp_dir_key, 0);
} else {
comp_dir = sdb_get (bf->sdb_addrinfo, "DW_AT_comp_dir", 0);
}
if (comp_dir) {
include_dir = r_str_newf ("%s/%s/", comp_dir, include_dir);
@ -613,10 +613,10 @@ static const ut8 *parse_line_header_source(RBinFile *bf, const ut8 *buf, const u
}
} else {
comp_dir_key = get_compilation_directory_key (debug_line_offset);
if (!comp_dir_key) {
include_dir = pinclude_dir = sdb_get (bf->sdb_addrinfo, "DW_AT_comp_dir", 0);
} else {
if (comp_dir_key) {
include_dir = pinclude_dir = sdb_get (bf->sdb_addrinfo, comp_dir_key, 0);
} else {
include_dir = pinclude_dir = sdb_get (bf->sdb_addrinfo, "DW_AT_comp_dir", 0);
}
if (!include_dir) {
include_dir = "./";

View File

@ -873,6 +873,7 @@ R_API bool r_core_bin_load(RCore *r, const char *filenameuri, ut64 baddr) {
}
beach:
if (r_config_get_b (r->config, "bin.dbginfo") && R_STR_ISNOTEMPTY (filenameuri)) {
// TODO only for macho
// load companion dwarf files
const char *basename = r_file_basename (filenameuri);
char *macdwarf = r_str_newf ("%s.dSYM/Contents/Resources/DWARF/%s", filenameuri, basename);

View File

@ -175,6 +175,7 @@ if host_machine.system() == 'windows'
r2_wwwroot = join_paths(r2_datdir, 'www')
r2_sdb = join_paths(r2_datdir)
r2_zigns = join_paths(r2_datdir, 'zigns')
r2_scripts = join_paths(r2_datdir, 'scripts')
r2_themes = join_paths(r2_datdir, 'cons')
r2_platform = join_paths(r2_datdir, 'platform')
r2_fortunes = join_paths(r2_datdir, 'doc')
@ -220,6 +221,7 @@ else
r2_datdir_r2 = join_paths(r2_datdir, 'radare2')
r2_wwwroot = join_paths(r2_datdir_r2, r2_version, 'www')
r2_sdb = join_paths(r2_datdir_r2, r2_version)
r2_scripts = join_paths(r2_datdir_r2, r2_version, 'scripts')
r2_zigns = join_paths(r2_datdir_r2, r2_version, 'zigns')
r2_platform = join_paths(r2_datdir_r2, r2_version, 'platform')
r2_themes = join_paths(r2_datdir_r2, r2_version, 'cons')
@ -551,6 +553,18 @@ sdb_inc_files = [
]
install_headers(sdb_inc_files, install_dir: join_paths(r2_incdir, 'sdb'))
script_files = [
'scripts/il2cpp.r2.js',
'scripts/ipsw-kernel-symbolicate.r2.js',
'scripts/licenses.r2.js',
'scripts/parseplug.r2.js',
'scripts/r2sptrace.py',
'scripts/tags.r2.js',
'scripts/unzip.r2.js',
'scripts/vsmap.r2.js',
]
install_data(script_files, install_dir: r2_scripts)
libr2sdb = static_library('r2sdb', sdb_files,
include_directories: sdb_inc,
implicit_include_directories: false,