Skip to content

Commit

Permalink
fix handling of perl dependencies - use duckpan installdeps
Browse files Browse the repository at this point in the history
  • Loading branch information
shedd committed Nov 15, 2013
1 parent df4eb60 commit 3eb5efb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 12 additions & 1 deletion duckpan.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3eb5efb

Please sign in to comment.