/
niceSOFT
/
cups
Обзор
Документация
Войти
/
niceSOFT
/
cups
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
scripts/checkglobals
32 строки
537 B
Michael R Sweet
Rename "tools" to "scripts", since that's what is contained.
26 апр 2019, 16:59
Не верифицирован
26 апр 2019, 16:59
7586933
Код
Авторство
О чём код?
#!/bin/sh # # Check for global symbols that don't need to be made global... # for file in *.o; do functions="" for function in `nm -g $file | grep "T " | awk '{print $3}'`; do found="" for file2 in *.o; do if test "$file" = "$file2"; then continue; fi found=`nm -g $file2 | grep $function` if test "$found" != ""; then break; fi done if test -z "$found"; then functions="$functions $function" fi done if test -z "$functions"; then echo "$file: OK" else echo "$file: $functions" fi done