Skip to content

Commit 81c8a02

Browse files
committed
sleigh_download.sh: Download to tag dir
1 parent 42ca4eb commit 81c8a02

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

scripts/sleigh_download.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
set -e
33
set -x
44

5-
git clone --depth=1 -b Ghidra_11.4.1_build https://github.com/NationalSecurityAgency/ghidra.git ghidra_src
5+
TAG=11.4.2
6+
GHIDRA_SRC_DIR=ghidra_src_${TAG}
7+
git clone --depth=1 -b Ghidra_${TAG}_build https://github.com/NationalSecurityAgency/ghidra.git ${GHIDRA_SRC_DIR}
68

79
# We just need Makefile and $(LIBSLA_SOURCE) defined inside Makefile. Do it this
810
# way to make sure we stay up to date with the list of required files.
911
SLEIGH_SRC_DIR=sleigh
10-
pushd ghidra_src/Ghidra/Features/Decompiler/src/decompile/cpp/
12+
pushd ${GHIDRA_SRC_DIR}/Ghidra/Features/Decompiler/src/decompile/cpp/
1113

1214
# Touch fake dependency files recently removed upstream. Not having these triggers build steps.
1315
mkdir -p com_opt com_dbg
@@ -18,5 +20,6 @@ make $SLEIGH_SRC_DIR
1820
SLEIGH_SRC_DIR=${PWD}/${SLEIGH_SRC_DIR}
1921
popd
2022

21-
mv $SLEIGH_SRC_DIR .
22-
mv ghidra_src/Ghidra/Processors processors
23+
mkdir ${TAG}
24+
mv $SLEIGH_SRC_DIR ${TAG}
25+
mv ${GHIDRA_SRC_DIR}/Ghidra/Processors ${TAG}/processors

0 commit comments

Comments
 (0)