From 3eb5efbe18c7c05dc41161cbeb5f4fe89234c9ca Mon Sep 17 00:00:00 2001 From: shedd Date: Thu, 14 Nov 2013 15:40:23 -0500 Subject: [PATCH] fix handling of perl dependencies - use duckpan installdeps --- Vagrantfile | 1 + duckpan.sh | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index da81b80..2930a38 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -38,5 +38,6 @@ Vagrant.configure("2") do |config| end # setup synced folder for the DDG code: "local host machine path", "path on guest vm" + # NOTE: If you change the guest VM path from /code edit the find command in duckpan.sh config.vm.synced_folder CUSTOM_CONFIG['DDG_PATH'], "/code" end diff --git a/duckpan.sh b/duckpan.sh index dbbfd32..187712b 100644 --- a/duckpan.sh +++ b/duckpan.sh @@ -1,9 +1,20 @@ #!/bin/bash USER_CMD="su -l vagrant -c" -$USER_CMD "wget -L http://duckpan.com/install.pl -O duckpan-install.pl" # needed to install the below to get duckpan to complete: sudo apt-get -y install liblocal-lib-perl sudo apt-get -y install perl-doc +# download the duckpan install script +$USER_CMD "wget -L http://duckpan.com/install.pl -O duckpan-install.pl" + +# run the duckpan script $USER_CMD "perl duckpan-install.pl ; perl -I/home/vagrant/perl5/lib/perl5 -Mlocal::lib duckpan-install.pl" + +# install perl dependencies for everything in /code +for i in $(find '/code/' -maxdepth 1 -type d) +do + echo "checking $i for Perl dependencies" + cd $i + duckpan installdeps +done \ No newline at end of file