From d2894d4084e93a69066aa87f83a6d0bf6e23f621 Mon Sep 17 00:00:00 2001 From: crep Date: Wed, 27 Oct 2010 19:22:05 +0200 Subject: [PATCH] Utils: add small script to select language --- utils/language.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 utils/language.sh diff --git a/utils/language.sh b/utils/language.sh new file mode 100755 index 00000000..d512fb88 --- /dev/null +++ b/utils/language.sh @@ -0,0 +1,17 @@ +#!/bin/sh +echo "Choose langage: 1 (english), 2 (french), 3 (spanish)" +for song in songs/*/*.sg; do + echo "Apply language to $song ?" + read answer + case "$answer" in + 1) + sed -i '1i\\\\selectlanguage{english}' $song + ;; + 2) + sed -i '1i\\\\selectlanguage{french}' $song + ;; + 3) + sed -i '1i\\\\selectlanguage{spanish}' $song + ;; + esac +done;