Browse Source

Update mojolicious environment shell scripts

Hamilton Turner 11 years ago
parent
commit
43a240429c
3 changed files with 13 additions and 3 deletions
  1. 5 0
      mojolicious/bash_profile.sh
  2. 8 0
      mojolicious/install.sh
  3. 0 3
      mojolicious/setup.py

+ 5 - 0
mojolicious/bash_profile.sh

@@ -0,0 +1,5 @@
+#!/bin/bash
+
+export PERL_HOME=${IROOT}/perl-5.18
+
+export PATH="$PERL_HOME/bin:$PATH"

+ 8 - 0
mojolicious/install.sh

@@ -1,3 +1,11 @@
 #!/bin/bash
 
 fw_depends perl
+
+# Ensure Mango and Mojolicious are installed
+fw_get http://cpanmin.us -O cpanminus.pl
+echo Got cpanm
+perl-5.18/bin/perl cpanminus.pl --notest --no-man-page App::cpanminus
+echo installed cpanm
+perl-5.18/bin/cpanm --notest --no-man-page Mojolicious Mango
+echo installed mango

+ 0 - 3
mojolicious/setup.py

@@ -1,12 +1,9 @@
 import subprocess
 import sys
 import json
-from os.path import expanduser
 import os
 import getpass
 
-home = expanduser("~")
-
 def start(args, logfile, errfile):
   conf = { 
     'database_host' : args.database_host,