Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 36 lines (27 sloc) 1.07 KB
#! /bin/bash
set -e
PKG=ghidra
VERSION=10.1.5
BUILD=0
PREFIX=/pkg/$PKG-$VERSION-$BUILD
if [ -n "$TESTING" ]; then PREFIX=/scratch/local2/$USER/$PKG-$VERSION-$BUILD ; fi
mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
. /pkg/openjdk-17.0.2.8-0/profile
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true'
PATH=$PREFIX:\$PATH
if [ -d $PREFIX/.compatlibs ]; then export LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:}\$LD_LIBRARY_PATH ; fi
EOF
. $PREFIX/profile
BUILDDIR=$PREFIX/build
mkdir -p $BUILDDIR
cd $BUILDDIR
# orig: https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_10.1.5_build/ghidra_10.1.5_PUBLIC_20220726.zip
BEEHIVE=https://beehive.molgen.mpg.de/bd542513e7b52f7f06eede128409de37/ghidra_10.1.5_PUBLIC_20220726.zip
VERSIONpubl=${VERSION}_PUBLIC # 10.1.5_PUBLIC
VERSIONdate=${VERSIONpubl}_20220726 # 10.1.5_PUBLIC_2022072
test -e ghidra_$VERSIONdate.zip || wget -nv $BEEHIVE
test -d ghidra_$VERSIONpubl || bsdtar -xf ghidra_$VERSIONdate.zip
mv ghidra_$VERSIONpubl/* $PREFIX
rmdir ghidra_$VERSIONpubl
exit