summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8d629b5)
echo ""
echo " http://code.google.com/p/biopieces/wiki/Installation"
echo ""
echo ""
echo " http://code.google.com/p/biopieces/wiki/Installation"
echo ""
- echo " If you experience problems, please report to the Google Group (see below)"
+ echo " If you experience problems, please report to the Google Group (see below)."
echo ""
echo " The installer will now do the following:"
echo ""
echo ""
echo " The installer will now do the following:"
echo ""
if [ $skip == 1 ]; then
echo "Skipping"
else
if [ $skip == 1 ]; then
echo "Skipping"
else
+ if [ -f "$HOME/.bashrc" ]; then
+ echo "Existing .bashrc file located: $HOME/.bashrc"
+ echo -n "Creating backup: "
+
+ if ! cp "$HOME/.bashrc" "$HOME/.bashrc_biopieces"; then
+ echo_red "FAIL"
+ abort
+ else
+ echo_green "OK"
+ echo " Backup is $HOME/.bashrc_biopieces"
+ fi
+ fi
+
echo -n "Appending $HOME/.bashrc: "
echo -n "Appending $HOME/.bashrc: "
- cp "$HOME/.bashrc" "$HOME/.bashrc_biopieces"
+ if ! echo "$section" >> "$HOME/.bashrc"; then
+ echo_red "FAIL"
+ abort
+ else
+ echo_green "OK"
+ fi
- echo "$section" >> "$HOME/.bashrc"
+ echo -n "Sourcing $HOME/.bashrc: "
+ if ! source "$HOME/.bashrc"; then
+ echo_red "FAIL"
+ abort
+ else
+ echo_green "OK"
+ fi
- echo " Backup is $HOME/.bashrc_biopieces"
+ echo " \$BP_DIR is now set to: $BP_DIR"
+ echo " \$BP_DATA is now set to: $BP_DATA"
+ echo " \$BP_TMP is now set to: $BP_TMP"
+ echo " \$BP_LOG is now set to: $BP_LOG"
+ echo ""