Browse Source

fl_wrapper: added magic to not include the copyright header of the templates everytime

karasz/new-early
Alejandro Mery 17 years ago
parent
commit
4b2165c8d7
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/tools-source/fl_wrapper/fl_wrapper_generated.c.sh

+ 3
- 2
src/tools-source/fl_wrapper/fl_wrapper_generated.c.sh

@ -49,9 +49,10 @@ add_wrapper()
;;
esac
sed -e "s/FUNCTION/$function/g" -e "s/RET_TYPE/$ret_type/g" \
sed -e '/SDE-COPYRIGHT-NOTE-BEGIN/,/SDE-COPYRIGHT-NOTE-END/d;' \
-e "s/FUNCTION/$function/g" -e "s/RET_TYPE/$ret_type/g" \
-e "s/P1/$p1/g" -e "s/P2/$p2/g" \
"$template"
"$template" | sed -e 'N;/^\/\*\n \*\/$/d;'
}
add_wrapper 'int, open, const char* f, int a, ...'

Loading…
Cancel
Save