build: Change the exported prefix name to the new official name

Authored by lepagevalleeemmanuel on Dec 12 2018, 4:57 AM.

Description

build: Change the exported prefix name to the new official name

This commit also converts the #pragma once back to #ifndef to
prevent pre-precessed and prefixed headers from clashing with the
internal paths.

for FILE in $(git grep 'pragma once' | cut -f1 -d:); do
    VAR=$(basename $FILE | sed 's/\./_/' | \
       awk '{print toupper($0)}');

    VAR=KQUICKITEMVIEWS_$VAR

    sed -i 's/#pragma once/#ifndef '$VAR'\n#define '$VAR'/' $FILE;
    echo >> $FILE; echo '#endif' >> $FILE
done

Details

Committed
lepagevalleeemmanuelDec 12 2018, 6:16 AM
Parents
R1027:42924f24de83: plugin: Fix an error in the last commit.
Branches
Unknown
Tags
Unknown