mirror of
https://github.com/boostorg/contract.git
synced 2026-01-27 18:52:16 +00:00
24 lines
671 B
Bash
Executable File
24 lines
671 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 [/usr/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 "NOTE: DBC++ header files successfully copied to \"$dest\"."
|
|
echo " Make sure this directory is in your C/C++ headers path (-I compiler option)."
|
|
echo
|
|
echo "You are ready to \`#include <dbc.hpp>' in your C++ programs!"
|
|
fi
|
|
|