diff options
author | Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com> | 2014-05-22 03:17:30 +0000 |
---|---|---|
committer | Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com> | 2014-05-22 03:17:30 +0000 |
commit | 1110f620a5f6951a8b8302540d063c881e0d0186 (patch) | |
tree | 87b16c738e7e3dbe69869b0874942e5161bd40f8 | |
parent | 01e377297d32407e66ad95a2b22160e8532c8675 (diff) | |
download | qtdeclarative-1110f620a5f6951a8b8302540d063c881e0d0186.tar.gz |
More fixes to the script.
-rwxr-xr-x | debian/mark_private_symbols.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/debian/mark_private_symbols.sh b/debian/mark_private_symbols.sh index 307d87e..a3f164d 100755 --- a/debian/mark_private_symbols.sh +++ b/debian/mark_private_symbols.sh @@ -41,7 +41,7 @@ then error "Private headers not found" fi -if [ -n "${WRITERESULTS}" ] +if [ ! -n "${WRITERESULTS}" ] then # Create a backup copy of the original symbols file. for symbols_file in `ls debian/*.symbols` @@ -58,16 +58,16 @@ grep -rh class ${PRIVATE_HEADERS} | done | while read privateclass do - debug marking ${privateclass} as private + debug Marking ${privateclass} as private if [ -n "${WRITERESULTS}" ] then - sed -i "s/\(.*${privateclass}[^ ]* *[^ ]*\)$/\1 1/" debian/*.symbol + sed -i "s/\(.*${privateclass}[^ ]* *[^ ]*\)$/\1 1/" debian/*.symbols else sed -i "s/\(.*${privateclass}[^ ]* *[^ ]*\)$/\1 1/" debian/*.symbols.mps fi done -if [ -n "${WRITERESULTS}" ] +if [ ! -n "${WRITERESULTS}" ] then # Diff the symbols files and output it's differences. for symbols_file in `ls debian/*.symbols` |