Skip to content
Snippets Groups Projects
Commit 0cf477db authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

small fix to installed headers

parent 8d1977be
No related branches found
No related tags found
No related merge requests found
......@@ -8,15 +8,22 @@ shift
script=""
includedir=
for dir in $*
dirs=$*
for dir in $dirs
do
script="$script"'
s|^# *include *"'$dir'/|#include "../'$dir'/|'
done
export LC_ALL=C
for file in */*.h
for dir in $dirs
do
for file in $dir/*.h
do
mkdir -p "$where/${file%/*}"
cat $file | sed "$script" > "$where/$file"
if test -e $file ; then
mkdir -p "$where/${file%/*}"
cat $file | sed "$script" > "$where/$file"
fi
done
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment