Commit fcd59920 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

[fix] perl expression to remove spaces in if[n]def wrongly changing ifndef to ifdef

parent ced54b57
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -180,7 +180,7 @@ if [ $ISAR -eq 1 ]; then

    # remove spaces in preprocessor directives
    perl -i -0777 -pe 's/#\s+(if|else|elif|endif|define)/#$1/g' $targetdir/lib_lc3plus/*.[ch]
    perl -i -0777 -pe 's/#(ifdef|ifndef)\s{2,}/#ifdef /g' $targetdir/lib_lc3plus/*.[ch]
    perl -i -0777 -pe 's/#(ifdef|ifndef)\s{2,}/#$1 /g' $targetdir/lib_lc3plus/*.[ch]

    echo "
    #endif /* OPTIONS_H_LC3_DEFINES */