about summary refs log tree commit diff
path: root/index.ms.do
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-06-16 19:25:33 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-06-16 19:25:33 +0200
commit8fdc880780deafbfed754489547f3d42b292b3c4 (patch)
treec70ed56668a3b10812c559208c2294cc2a46aeab /index.ms.do
parent417f39383fe85924cfd4dbd172d67f45fc775dde (diff)
downloadspiewnik-8fdc880780deafbfed754489547f3d42b292b3c4.tar.gz
spiewnik-8fdc880780deafbfed754489547f3d42b292b3c4.zip
Akordy
Diffstat (limited to 'index.ms.do')
-rw-r--r--index.ms.do3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.ms.do b/index.ms.do
index 117d5a2..1ef3487 100644
--- a/index.ms.do
+++ b/index.ms.do
@@ -1,8 +1,9 @@
 redo-ifchange $(find piosenki -type f -name '*.txt')
 
+echo "" > index.ms
 for f in `find piosenki -type f -name '*.txt' | sort`; do
   filename=$(basename $f .txt)
-  sed 'G' $f | grep -A1 . | sed 's/--//' > piosenki/.$filename.ms
+  sed 'G' $f | grep -A1 . | sed 's/--//' | sed 's/^\(.*\)|\(.*\)/\.AKORDY "\1" "\2"/' > piosenki/.$filename.ms
   echo .so piosenki/.$filename.ms >> index.ms
   echo .br >> index.ms
   echo .bp >> index.ms