1 |
edhill |
1.1 |
#!/bin/bash |
2 |
|
|
|
3 |
|
|
rm -rf byname |
4 |
|
|
mkdir byname |
5 |
|
|
|
6 |
|
|
# Create soft-links for all of the files based on their names |
7 |
|
|
for i in code/* |
8 |
|
|
do |
9 |
|
|
t1=`grep '^<TITLE' $i | sed -e 's/<TITLE>.\///g' | sed -e 's/<\/TITLE>//g'` |
10 |
|
|
t2=`echo $t1 | sed -e 's/\//-/g'` |
11 |
|
|
( cd byname ; ln -s "../"$i $t2".html" ) |
12 |
|
|
done |
13 |
|
|
|
14 |
|
|
|
15 |
|
|
# Create soft-links for all the symbols based on their names |
16 |
|
|
for i in names/* |
17 |
|
|
do |
18 |
|
|
t1=`grep '^<TITLE' $i | cut -d '"' -f 2` |
19 |
|
|
( cd byname ; ln -s "../"$i $t1".html" ) |
20 |
|
|
done |
21 |
|
|
|