Skip to content

Commit

Permalink
Merge pull request jppbsi#11 from danilown/master
Browse files Browse the repository at this point in the history
Added configure script.
  • Loading branch information
gugarosa authored May 15, 2019
2 parents 806aa8d + 297a139 commit 4cd1a03
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions configure
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

########## Enviroment Variable Configuration ##########
# adding the environment variable of the LibOPT library to the .bashrc
# checking if the Enviroment variable is already configured
if [ $OPT_DIR ]
then
echo "# The Enviroment variable OPT_DIR=${OPT_DIR} is already set, nothing to do here."
else
OPT_DIR=$(pwd)
echo "Adding Enviroment variable to ${OPT_DIR}."
echo "" >> ~/.bashrc
echo "# added by LibOPT" >> ~/.bashrc
echo "export OPT_DIR=${OPT_DIR}" >> ~/.bashrc

echo "Please run the following on your current shell:"
echo "source ~/.bashrc"
echo "Or close this shell session and open a new one."
fi
####################################################

0 comments on commit 4cd1a03

Please sign in to comment.