Skip to content

Instantly share code, notes, and snippets.

@eiro
Created July 26, 2011 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eiro/1107121 to your computer and use it in GitHub Desktop.
Save eiro/1107121 to your computer and use it in GitHub Desktop.
cpan install dans une branche
set -e
cd /rtgi/modules/Local-Lib
export PERL_MB_OPT="--install_base $PWD"
export PERL_MM_OPT="INSTALL_BASE=$PWD"
git checkout perl-5.12.3-devel
git pull
candidate="$1"
branch="`echo $candidate | sed s/::/-/g`"
git checkout -b $branch
cpan $candidate
@gmaurice
Copy link

à ceci près que je remplacerais pour lever toute ambiguité :
git pull
par
git pull git remote perl-5.12.3-devel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment