#!/bin/sh
set -e

. optvars

for FILE in $*
do

    # get the absolute path of the directory
    # WARNING: for N900, getting the optpath doesn't work, therefore the below commented out, as it doesn't have bash, use absolute paths for directories to optlink
#    FILE=optpath $FILE
    $KUMATUXDELETE/nonlinked.sh $FILE
    $KUMATUXLINK/link-all.sh $FILE
done

echo "If a Python app, inspect $KUMATUXBIN/link.sh/python-link.sh and $KUMATUXBIN/link.sh/python-usr-lib.sh for missing python links in /usr/ and link the app manually."
