Skip to content

Commit

Permalink
Merge pull request #4330 from thomaseichinger/pr/cmdline2xml_fix
Browse files Browse the repository at this point in the history
eclipsesym/cmdline2xml.sh: introduce workaround readlink function
  • Loading branch information
cgundogan committed Dec 8, 2015
2 parents 338acc0 + 4a8b2ae commit 8e63ae9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dist/tools/eclipsesym/cmdline2xml.sh
Expand Up @@ -26,6 +26,8 @@ if [ $# -ne 0 ]; then
exit 2
fi

readlink () { echo $(cd $(dirname $1); pwd)/$(basename $1); }

XML_INSTRUCTIONS='
<!--
Instrucions:
Expand Down Expand Up @@ -59,7 +61,7 @@ INCLUDES=$(${ECHO} "${GCCCOMMANDLINE}" | sed -e 's/ /\n/g' | egrep '^-I' | cut -
INCLUDES_REL=""
for p in ${INCLUDES}; do
#ABSPATH=$(readlink -m "$p")
RELPATH=$(readlink -m "$p" | sed -e "s,^${RIOTBASE},/${ECLIPSE_PROJECT_NAME}/,")
RELPATH=$(readlink "$p" | sed -e "s,^${RIOTBASE},/${ECLIPSE_PROJECT_NAME}/,")
INCLUDES_REL=${INCLUDES_REL}$'\n'${RELPATH}
done

Expand Down

0 comments on commit 8e63ae9

Please sign in to comment.