123456789101112131415161718192021222324252627282930313233343536 |
- #!/bin/bash
- install_loc=
- while [ $1 ]; do
-
- if [ $1 == "--install-loc" ]; then
- if [ $# -gt 1 ]; then
- install_loc=$2
- shift
- else
- echo "--install-loc command expects an argument"
- fi
-
- elif [ $1 == "--help" ]; then
- echo "arguments:"
- echo "--install-loc <loc>"
- echo " where to install the project"
- fi
-
- shift
- done
- cp makefile.in makefile
- sed -i "s/@INSTALL_LOCATION@/${install_loc//\//\\\/}/g" makefile
|