]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
add to the vagrant vm a 're.pl' command that gives a pretty nice perl shell (#176)
authorDylan William Hardison <dylan@hardison.net>
Fri, 21 Jul 2017 16:31:19 +0000 (12:31 -0400)
committerMary Umoh <umohm12@gmail.com>
Fri, 21 Jul 2017 16:31:19 +0000 (12:31 -0400)
* add re.pl support

* order of includes matter

vagrant_support/devtools.yml
vagrant_support/playbook.yml
vagrant_support/re.pl [new file with mode: 0755]

index bfc62cb2a223da747be5a494c8fda25e30652512..f9fb3e94fe1bb59e5a7cab4c5a887be95d8e3a36 100644 (file)
@@ -2,3 +2,14 @@
 - name: copy bashrc
   copy: src=bashrc dest=/home/vagrant/.bashrc mode=0644
 
+- cpanm: name=Devel::REPL notest=true locallib=/home/vagrant/perl executable=/usr/local/bin/cpanm
+- cpanm: name=Term::ReadLine::Gnu notest=true locallib=/home/vagrant/perl executable=/usr/local/bin/cpanm
+- cpanm: name=PPI notest=true locallib=/home/vagrant/perl executable=/usr/local/bin/cpanm
+- cpanm: name=Data::Dumper::Concise notest=true locallib=/home/vagrant/perl executable=/usr/local/bin/cpanm
+- cpanm: name=File::Next notest=true locallib=/home/vagrant/perl executable=/usr/local/bin/cpanm
+- cpanm: name=Sys::SigAction notest=true locallib=/home/vagrant/perl executable=/usr/local/bin/cpanm
+- cpanm: name=Lexical::Persistence notest=true locallib=/home/vagrant/perl executable=/usr/local/bin/cpanm
+
+- name: copy re.pl
+  copy: src=re.pl dest=/usr/local/bin/re.pl mode=0755
+
index 0934441433cef3b8d28e5f2e9a2b12d13db2e1a8..94d9325a3fbb52f3f69b00c5d54c3d10bf4fc687 100644 (file)
         - pkgconfig
         - rpm-build
         - graphviz
+        - ncurses-devel
+        - readline-devel
 
     - name: fetch cpanm
       get_url:
diff --git a/vagrant_support/re.pl b/vagrant_support/re.pl
new file mode 100755 (executable)
index 0000000..d6deeca
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+exec perl \
+    -I$HOME/perl/lib/perl5 \
+    -I/vagrant/local/lib/perl5 \
+    $HOME/perl/bin/re.pl "$@"