Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding readme script and updating readme.org with the new files
- Loading branch information
David Bjergaard
committed
Mar 16, 2018
1 parent
81f64c8
commit aef7e78
Showing
2 changed files
with
69 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
sed '/# --/q' README.org > tmpReadme | ||
|
||
for f in $(find . -name "*.asd"); | ||
do | ||
desc=$(grep description $f | grep -o \".*\" | sed 's,",,g'); | ||
echo - [[$(dirname $f)/README.org][$(basename $f .asd)]] :: $desc >> tmpReadme | ||
done | ||
awk '/util/ && !x {print "** Utilities"; x=1} 1' tmpReadme > tmp; mv tmp tmpReadme | ||
awk '/media/ && !x {print "** Media"; x=1} 1' tmpReadme > tmp; mv tmp tmpReadme | ||
awk '/minor-mode/ && !x {print "** Minor Modes"; x=1} 1' tmpReadme > tmp; mv tmp tmpReadme | ||
awk '/modeline/ && !x {print "** Modeline"; x=1} 1' tmpReadme > tmp; mv tmp tmpReadme | ||
mv tmpReadme README.org |