Skip to content

Commit

Permalink
fix B2G_init, Gaia_init generation
Browse files Browse the repository at this point in the history
  • Loading branch information
gasolin committed Feb 10, 2014
1 parent 895b038 commit 58f413d
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ echo "█████╗ ██║ ██║ ╚███╔╝ ████
echo "██╔══╝ ██║ ██║ ██╔██╗ ██╔══██╗██║ ██║ ██╔██╗ "
echo "██║ ╚██████╔╝██╔╝ ██╗██████╔╝╚██████╔╝██╔╝ ██╗"
echo "╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚═╝ ╚═╝"
echo " Install Java "
echo " Install Java for adb "
# Not sure if it's necessary but the build complaints about the Java version.
apt-get purge -y openjdk*
add-apt-repository -y ppa:webupd8team/java
Expand Down Expand Up @@ -166,6 +166,15 @@ echo "██║ ╚██████╔╝██╔╝ ██╗███
echo "╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚═╝ ╚═╝"
echo " Create helper scripts "
echo " configure git "
cat > ~/.gitconfig <<EOF
[user]
name = My name
email = [email protected]
[color]
ui = auto
EOF
echo " Create 'gui.sh' to start GUI "
echo "sudo startxfce4&" > gui.sh
chmod a+x gui.sh
Expand All @@ -185,7 +194,7 @@ else
rm B2G/.DS_Store
echo "clone B2G repository"
git clone https://github.com/mozilla-b2g/B2G.git B2G
fi" > init_B2G.sh
fi" > B2G_init.sh
chmod a+x B2G_init.sh
echo " Create 'init_gaia.sh' to fetch gaia source "
Expand All @@ -203,7 +212,7 @@ else
rm gaia/.DS_Store
echo "clone gaia repository"
git clone https://github.com/mozilla-b2g/gaia.git gaia
fi" > init_gaia.sh
fi" > gaia_init.sh
chmod a+x gaia_init.sh
Expand Down Expand Up @@ -243,6 +252,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

# Assign static IP to be able to use nfs option (if you have a conflict,
# change it to something else).
# Configure as host-only ip
config.vm.network "private_network", ip: "192.168.50.4"

# Use *_PATH environment variable to sync with vm's /home/vagrant/*
Expand Down

0 comments on commit 58f413d

Please sign in to comment.