about summary refs log tree commit diff
path: root/index.ms.do
diff options
context:
space:
mode:
Diffstat (limited to 'index.ms.do')
-rw-r--r--index.ms.do4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.ms.do b/index.ms.do
index 97609f7..085de60 100644
--- a/index.ms.do
+++ b/index.ms.do
@@ -3,6 +3,6 @@ redo-ifchange $(find piosenki -type f -name '*.txt')
 cat source.tmac > index.ms
 for f in `find piosenki -type f -name '*.txt' | sort`; do
   filename=$(basename $f .txt)
-  cp $f piosenki/$filename.ms
-  echo .SOURCE piosenki/$filename.ms >> index.ms
+  sed 'G' $f | grep -A1 . | sed 's/--//' > piosenki/.$filename.ms
+  echo .SOURCE piosenki/.$filename.ms >> index.ms
 done