public
/
nick_site.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Rename /_lib/navbar.jst to /_lib/sidebar.jst, reinstate /_lib/navbar.jst from NDCODE...
[nick_site.git]
/
ids.sh
1
#!/bin/sh
2
sed -e 's/#/\n#/g' |sed -ne "s/#'\?\([A-Za-z0-9_-]\+\).*/\1/p" |LC_ALL=C sort |uniq >temp.a
3
sed -e 's/-/_/g' <temp.a >temp.b
4
paste temp.a temp.b |sed -e "s/\(.*\)\t\(.*\)/let id_\2 = document.getElementById('\1')/"
5
rm -f temp.a temp.b