|
@@ -3,7 +3,8 @@
|
|
while getopts ":C:h" opt; do
|
|
while getopts ":C:h" opt; do
|
|
case $opt in
|
|
case $opt in
|
|
C)
|
|
C)
|
|
- if ! cd "$OPTARG" 2>/dev/null
|
|
|
|
|
|
+ CDIR="$OPTARG"
|
|
|
|
+ if ! cd "$CDIR" 2>/dev/null
|
|
then
|
|
then
|
|
(>&2 echo "Failed to change directory to $OPTARG")
|
|
(>&2 echo "Failed to change directory to $OPTARG")
|
|
exit 1
|
|
exit 1
|
|
@@ -44,7 +45,7 @@ while read line; do
|
|
filename=`echo "$symbol" | perl -pe "s#.*?igl::([A-z0-9_:]*).*$'$'#\1#"`
|
|
filename=`echo "$symbol" | perl -pe "s#.*?igl::([A-z0-9_:]*).*$'$'#\1#"`
|
|
filename=`echo "$filename" | sed -e "s/::/\//g"`
|
|
filename=`echo "$filename" | sed -e "s/::/\//g"`
|
|
#echo "filename = $filename"
|
|
#echo "filename = $filename"
|
|
- cpp="$LIBIGL/include/igl/$filename.cpp"
|
|
|
|
|
|
+ cpp="./include/igl/$filename.cpp"
|
|
# append .cpp and check that file exists
|
|
# append .cpp and check that file exists
|
|
if [ ! -e "$cpp" ]
|
|
if [ ! -e "$cpp" ]
|
|
then
|
|
then
|