Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:ossimlabs/ossim into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarkramer committed Nov 26, 2018
2 parents 8da55cf + ea501c1 commit 4c5c423
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions scripts/ocpld.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,20 @@ if [[ $# < 2 ]]; then
fi

if [ ! -d $1 ]; then
echo; echo "<$1> is not a valid input directory. Aborting..."; echo
exit 1
if [ ! -f $1 ] ; then
echo; echo "<$1> is not a valid input directory or file. Aborting..."; echo
exit 1
fi
fi

if [ ! -d $2 ]; then
echo; echo "Output directory <$2> does not exist. Creating..."; echo
mkdir -p $2
fi

find $1 -type f -name "*.so" -exec bash -c "do_cpld {} $2" \;

if [ -f $1 ] ; then
do_cpld $1 $2
else
find $1 -type f -name "*.so*" -exec bash -c "do_cpld {} $2" \;
fi
echo; echo "All dependencies were copied to $2. Done!"; echo

0 comments on commit 4c5c423

Please sign in to comment.