From f116b681e6e80ab30d36a3941be5474efd38af28 Mon Sep 17 00:00:00 2001 From: pancake Date: Tue, 19 Jul 2011 12:52:51 +0200 Subject: [PATCH] * Move RELEASE stuff from doc/releases to DEVELOPERS * Fix env.sh --- DEVELOPERS | 15 +++++++++++++++ doc/releases | 15 --------------- env.sh | 14 ++++++++++---- 3 files changed, 25 insertions(+), 19 deletions(-) mode change 100644 => 100755 env.sh diff --git a/DEVELOPERS b/DEVELOPERS index 88a5e652b2039..0e097f1931d74 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -132,5 +132,20 @@ work and then export all those patchsets like this: TODO: explain binary patchsets and how to dump a full branch +HOW TO RELEASE +-------------- + + - Set RELEASE=1 in global.mk and r2-bindings/config.mk.acr + + == RADARE2 + - bump revision + - ./configure + - make dist + + == R2-BINDINGS + - ./configure --enable-devel + - make + - make dist + --pancake diff --git a/doc/releases b/doc/releases index 86e2f2bb5be47..6719f49db328f 100644 --- a/doc/releases +++ b/doc/releases @@ -53,18 +53,3 @@ FUTURE ------ - Commands should be handled in a structural way, not by a bunch of switch/cases - -HOW TO RELEASE --------------- - - - Set RELEASE=1 in global.mk and r2-bindings/config.mk.acr - - == RADARE2 - - bump revision - - ./configure - - make dist - - == R2-BINDINGS - - ./configure --enable-devel - - make - - make dist diff --git a/env.sh b/env.sh old mode 100644 new mode 100755 index 79c8cef32df62..f0b027807e23d --- a/env.sh +++ b/env.sh @@ -1,10 +1,16 @@ #!/bin/sh +pfx=$1 +if [ -z "$pfx" ]; then + echo "Usage: ./env.sh [path-to-prefix]" + exit 1 +fi + new_env=' -LIBR_PLUGINS=$PWD/prefix/lib/radare2 -PATH=$PATH:$PWD/prefix/bin -LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/prefix/lib -DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/prefix/lib +LIBR_PLUGINS=${pfx}/lib/radare2 +PATH=$pfx/bin:${PATH} +LD_LIBRARY_PATH=$pfx/lib:$LD_LIBRARY_PATH +DYLD_LIBRARY_PATH=$pfx/lib:$LD_LIBRARY_PATH PKG_CONFIG_PATH=$PWD/libr/ '