Skip to content

Commit

Permalink
add gitprep-shell wrappter script to run current perl
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-kimoto committed May 4, 2016
1 parent 0c861aa commit e1acdf6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ MYMETA.json
MYMETA.yml
log/*
!log/.gitignore
script/gitprep-shell
script/hypnotoad.pid
!public/.gitignore
script/hypnotoad.pid
extlib/*
gitprep.my.conf
data/*
Expand Down
2 changes: 1 addition & 1 deletion script/gitprep-shell → script/gitprep-shell-raw
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ gitprep-shell - AuthorizedKeysCommand for sshd
=head1 USAGE
./gitprep-shell kimoto
./gitprep-shell-raw kimoto
This command return user public_key
7 changes: 7 additions & 0 deletions setup_module
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@ 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

0 comments on commit e1acdf6

Please sign in to comment.