Skip to content

Commit

Permalink
Add experimental r2pm -ci flag
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Oct 10, 2017
1 parent a9f52df commit b0beb37
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions binr/r2pm/r2pm
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export GLOBAL=0
export R2PM_JOBS=4
export R2VERSION="`r2 -qv`"

R2PM=$0
PREFIX="`r2 -H PREFIX`"
BINDIR="${PREFIX}/bin/"
LIBDIR="${PREFIX}/lib/"
Expand Down Expand Up @@ -428,6 +429,11 @@ case "$1" in
#TODO set R2PM_ETCD= to a "global" radare2rc.d
r2pm_uninstall "$@"
;;
-ci)
shift
${R2PM} clean $*
${R2PM} install $*
;;
-c|clean)
if [ -n "$2" ]; then
if [ -d "${R2PM_GITDIR}/$2" ]; then
Expand Down Expand Up @@ -556,6 +562,7 @@ Commands:
-h,help show this message
-H variable show value of given variable
-c,clean ([git/dir]) clear source cache (GITDIR)
-ci (pkgname) clean install of given package
-d,doc [pkgname] show documentation for given package
-w <pkgname> what/where is installed
init | update .. initialize/update database
Expand Down

0 comments on commit b0beb37

Please sign in to comment.