Files
contract/bin/install
2017-08-28 20:54:11 -07:00

22 lines
609 B
Bash
Executable File

#!/bin/bash
echo "Design By Contract for C++ (DBC++) Library Installation"
dest=""
echo
echo -en "Enter C/C++ header files directory [/use/include/]: "
read dest
if [ -z $dest ]; then dest="/usr/include/"; fi
mkdir -p $dest && cp -R include/dbc* $dest
ret=$?
echo
if [ $ret -ne 0 ]; then
echo "ERROR: Unable to copy DBC++ header files to \"$dest\"."
echo "Do you need to be root to access this directory?"
else
echo "DBC++ header files successfully copied to \"$dest\"."
echo "Make sure this directory is in your C/C++ headers path (-I compiler option) and you are ready to use DBC++."
fi