Skip to content

Commit

Permalink
Add ggpack io plugin (radareorg#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmacete authored and radare committed Oct 23, 2017
1 parent 11e2a5d commit b2b5f99
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions db/ggpack
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
R2PM_BEGIN

R2PM_GIT "https://github.com/mrmacete/r2-ggpack"
R2PM_DESC "[r2-io] Read and edit ThimbleweedPark ggpack data files"

R2PM_INSTALL() {
mkdir -p "${R2PM_ETCD}" || exit 1
${MAKE} clean
${MAKE} || exit 1
cp *.${LIBEXT} "${R2PM_PLUGDIR}" || exit 1
echo '$ggimport=#!pipe python '"'$(pwd)'"'/ggimport.py' > "${R2PM_ETCD}/ggimport" || exit 1
echo '$ggexport=#!pipe python '"'$(pwd)'"'/ggexport.py' > "${R2PM_ETCD}/ggexport" || exit 1
}

R2PM_UNINSTALL() {
rm -f "${R2PM_ETCD}"/ggimport
rm -f "${R2PM_ETCD}"/ggexport
rm -f ${R2PM_PLUGDIR}/*ggpack*
}

R2PM_END

0 comments on commit b2b5f99

Please sign in to comment.