added lib sub-flag

This commit is contained in:
Václav Šmejkal 2022-05-02 19:19:43 +02:00
parent da03b85b9c
commit 4be38d930d

View File

@ -46,17 +46,19 @@ if [[ "$1" == "test" ]]; then ########## TEST ##########
echo "Output generated as '$output'" echo "Output generated as '$output'"
### ###
elif [[ "$1" == "install" ]]; then ########## INSTALL ########## elif [[ "$1" == "install" ]]; then ########## INSTALL ##########
### if [[ "$2" != "lib" ]]; then
echo "Installing header files..." ###
### echo "Installing header files..."
###
# Create why2 directory # Create why2 directory
if [[ ! -d $includeDirectory ]]; then if [[ ! -d $includeDirectory ]]; then
mkdir $includeDirectory mkdir $includeDirectory
fi
cp $includeFiles $includeDirectory
fi fi
cp $includeFiles $includeDirectory
### ###
echo "Using '$compiler' as default compiler." echo "Using '$compiler' as default compiler."
### ###