#!/bin/sh # Copyright 2014, Alexis La Goutte (See AUTHORS file) # # For clang user: launch the script to add pragma for remove warning about -Wdocumentation # (using on Petri Dish) find . ! -name "*.sh" -type f -exec sed -i 's/#include /#pragma clang diagnostic push\n#pragma clang diagnostic ignored "-Wdocumentation"\n#include \n#pragma clang diagnostic pop/g' {} \; find . ! -name "*.sh" -type f -exec sed -i 's/#include /#pragma clang diagnostic push\n#pragma clang diagnostic ignored "-Wdocumentation"\n#include \n#pragma clang diagnostic pop/g' {} \; find . ! -name "*.sh" -type f -exec sed -i 's/#include /#pragma clang diagnostic push\n#pragma clang diagnostic ignored "-Wdocumentation"\n#include \n#pragma clang diagnostic pop/g' {} \;