forked from jppbsi/LibOPT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request jppbsi#11 from danilown/master
Added configure script.
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
#################################################### |