projects
/
brisk.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
update info form with new Fieldify (partial)
[brisk.git]
/
bin
/
get_globals.sh
1
#!/bin/bash
2
glob="$(grep '$G_' $(find -type f -name '*.ph*') | sed 's/\$G_/\n\$G_/g' | grep '^\$G_' | sed 's/[^\$a-zA-Z0-9_].*//g' | sort | uniq | sed 's/\$//g' )"
3
4
li=""
5
for i in $glob ; do
6
if [ $(echo "${li}, '$i'," | wc -c) -gt 80 ]; then
7
echo $li
8
li=""
9
fi
10
if [ "$li" = "" ]; then
11
li="'${i}', "
12
else
13
li="${li} '${i}',"
14
fi
15
done
16
17