gitprep / setup_module /
e1acdf6 3 years ago
1 contributor
13 lines | 0.498kb
#!/bin/sh
CUR_DIR_ABS=$(cd $(dirname $0); pwd)
export PERL_CPANM_HOME=$CUR_DIR_ABS/setup
perl cpanm -n -l extlib Module::CoreList
perl -Iextlib/lib/perl5 cpanm -f -L extlib ExtUtils::MakeMaker
perl -Iextlib/lib/perl5 cpanm -L extlib --installdeps .

# Create gitprep-shell script
CURRENT_PERL=`which perl`
echo '#!/bin/sh' > script/gitprep-shell
echo -n "$CURRENT_PERL $CUR_DIR_ABS/script/gitprep-shell-raw" >> script/gitprep-shell
echo ' $*' >> script/gitprep-shell
chmod 755 script/gitprep-shell