diff --git a/english.sb b/english.sb deleted file mode 100644 index e8ff5523..00000000 --- a/english.sb +++ /dev/null @@ -1,121 +0,0 @@ -{ -"template" : "patacrep-en.tmpl", -"author" : "Romain Goffe \\and Alexandre Dupas", -"bookoptions" : [ - "diagram", - "lilypond" - ], -"booktype" : "chorded", -"footer" : "\\begin{flushleft}\\includegraphics[width=3cm]{on-fire}\\end{flushleft}", -"indexbgcolor" : "#D1E4AE", -"license" : "\\input{license-en.tex}", -"mail" : "crep@team-on-fire.com", -"mainfontsize" : "10pt", -"notebgcolor" : "#D1E4AE", -"picture" : "Music_by_Katie8594", -"picturecopyright" : "Katie8594 @ deviantart.com", -"songnumberbgcolor" : "#D1E4AE", -"subtitle" : "english songs", -"title" : "Guitar Songbook", -"version" : "3.2", -"web" : "http://www.patacrep.com", -"songs" : [ - "Aaron/U_turn_lili.sg", - "Alicia_Keys/If_aint_got_you.sg", - "Amy_MacDonald/Mr._Rock_n_Roll.sg", - "Amy_MacDonald/This_is_the_life.sg", - "Avril_Lavigne/Things_I_ll_never_say.sg", - "Barry_Louis_Polisar/All_I_Want_Is_You.sg", - "Belle_Sebastian/Piazza_New_York_catcher.sg", - "Ben_Harper/Widow_of_a_living_man.sg", - "Ben_Harper/Waiting_on_an_angel.sg", - "Bob_Dylan/Mr_tambourine_man.sg", - "Bob_Dylan/Blowin_in_the_wind.sg", - "Bob_Dylan/Knocking_on_heavens_door.sg", - "Britney_Spears/Baby_one_more_time.sg", - "Bruce_Springsteen/John_Henry.sg", - "Bruce_Springsteen/Pay_me_my_money_down.sg", - "Bruce_Springsteen/Buffalo_gals.sg", - "Bruce_Springsteen/Bring_em_home.sg", - "Bruce_Springsteen/O_Mary_don_t_you_weep.sg", - "Carter_Family/In_the_highways.sg", - "Carter_Family/Keep_on_the_sunny_side.sg", - "Cat_Stevens/Here_comes_my_baby.sg", - "Cat_Stevens/Father_and_son.sg", - "Cat_Stevens/My_Lady_d_Arbanville.sg", - "Cat_Stevens/The_wind.sg", - "Cat_Stevens/Sad_Lisa.sg", - "Cranberries/Zombie.sg", - "Cranberries/Animal_instinct.sg", - "Dessins_Animes/I_Wanna_be_like_you.sg", - "Eels/Packing_blankets.sg", - "Eels/Hey_man.sg", - "Eels/I_like_birds.sg", - "Eels/Dirty_girl.sg", - "Garfunkel_and_Oates/Fuck_you.sg", - "Gogol_Bordello/Oh_no.sg", - "Green_Day/Boulevard_of_broken_dreams.sg", - "Green_Day/American_idiot.sg", - "Green_Day/Minority.sg", - "Herman_Dune/I_wish_I_could_see_you_soon.sg", - "Howie_Day/Collide.sg", - "Jack_Johnson/Taylor.sg", - "Jason_Marz/I_m_yours.sg", - "Jeff_Buckley/Hallelujah.sg", - "John_Lennon/Working_class_hero.sg", - "Jonathan_Coulton/Still_alive.sg", - "Kimya_Dawson/Tree_hugger.sg", - "Le_Donjon_de_Naheulbeuk/Bugger_off.sg", - "Linkin_Park/Numb.sg", - "Mano_Negra/Out_of_time_man.sg", - "Mes_souliers_sont_rouges/The_rooster.sg", - "Moriarty/Jimmy.sg", - "Negro_Spiritual/Lord_I_want.sg", - "Neil_Young/Heart_of_gold.sg", - "Norah_Jones/Somewhere_over_the_rainbow.sg", - "Oasis/Wonderwall.sg", - "Pixies/Where_Is_My_Mind.sg", - "Pornophonique/Sad_robot.sg", - "Radiohead/Creep.sg", - "Rise_Against/Hero_of_war.sg", - "Ritchie_Valens/Come_on_let_s_go.sg", - "Sheepbox/Devil_s_way.sg", - "Sheepbox/Not_scared_to_die.sg", - "Simon_Garfunkel/The_boxer.sg", - "Simon_Garfunkel/The_only_living_boy_in_New_York.sg", - "Simon_Garfunkel/Mrs_Robinson.sg", - "Simon_Garfunkel/The_leaves_that_are_green.sg", - "Simon_Garfunkel/The_sounds_of_silence.sg", - "Simon_Garfunkel/El_condor_pasa.sg", - "Simon_Garfunkel/April_come_she_will.sg", - "Simon_Garfunkel/Kathy_s_song.sg", - "Simon_Garfunkel/Feeling_groovy.sg", - "Simon_Garfunkel/Wednesday_morning_3a.m.sg", - "Simon_Garfunkel/Cecilia.sg", - "Simon_Garfunkel/Scarborough_Fair.sg", - "System_of_a_Down/Roulette.sg", - "Terra_Naomi/Say_It_s_Possible.sg", - "The_Animals/The_house_of_rising_sun.sg", - "The_Beatles/Yesterday.sg", - "The_Beatles/Let_it_be.sg", - "The_Beatles/Twist_and_shout.sg", - "The_Beatles/Yellow_submarine.sg", - "The_Beatles/Hey_Jude.sg", - "The_Beatles/Ob-la-di_ob-la-da.sg", - "The_Beatles/Octopus_garden.sg", - "The_Calling/Wherever_you_will_go.sg", - "The_Carpenters/Breaking_up_is_hard_to_do.sg", - "The_Dubliners/Whiskey_in_the_jar.sg", - "The_Eagles/Hotel_California.sg", - "The_Fray/How_to_save_a_life.sg", - "The_Moldy_Peaches/Anyone_Else_But_You.sg", - "The_Nightwatchman/Let_freedom_ring.sg", - "The_Pogues/Dirty_Old_Town.sg", - "The_Pogues/Fairytale_of_New_York.sg", - "The_White_Stripes/Well_it_s_true_that_we_love_one_another.sg", - "U2/Sunday_bloody_sunday.sg", - "Yodelice/Sunday_with_a_flu.sg", - "Yuki_Kajiura/Vanity.sg", - "Yuki_Kajiura/Fake_wings.sg" - ] -} diff --git a/utils/header-en b/utils/header-en new file mode 100644 index 00000000..313654f1 --- /dev/null +++ b/utils/header-en @@ -0,0 +1,22 @@ +{ +"template" : "patacrep-en.tmpl", +"author" : "Romain Goffe \\and Alexandre Dupas", +"bookoptions" : [ + "diagram", + "lilypond" + ], +"booktype" : "chorded", +"footer" : "\\begin{flushleft}\\includegraphics[width=3cm]{on-fire}\\end{flushleft}", +"indexbgcolor" : "#D1E4AE", +"license" : "\\input{license-en.tex}", +"mail" : "crep@team-on-fire.com", +"mainfontsize" : "10pt", +"notebgcolor" : "#D1E4AE", +"picture" : "Music_by_Katie8594", +"picturecopyright" : "Katie8594 @ deviantart.com", +"songnumberbgcolor" : "#D1E4AE", +"subtitle" : "english songs", +"title" : "Guitar Songbook", +"version" : "3.2", +"web" : "http://www.patacrep.com", +"songs" : [ \ No newline at end of file diff --git a/utils/header-fr b/utils/header-fr new file mode 100644 index 00000000..c5efbdc8 --- /dev/null +++ b/utils/header-fr @@ -0,0 +1,3 @@ +{ +"template" : "patacrep.tmpl", +"songs" : [ diff --git a/utils/langbooks.sh b/utils/langbooks.sh new file mode 100755 index 00000000..6aaf9bfa --- /dev/null +++ b/utils/langbooks.sh @@ -0,0 +1,38 @@ +#!/bin/sh + +#Author: Romain Goffe +#Date: 14/11/2010 +#Description: Generate an sb file containing all the songs in a given language + +echo "Build songbook file for songs in english (1), french (2)" +read answer +case "$answer" in + 1) + cat ./utils/header-en > english.sb + for song in songs/*/*.sg; + do + if grep -q "selectlanguage{english}" $song + then + echo "\t\""`ls $song | sed "s/songs\\///g"`"\"," >> english.sb + fi + done + #remove last coma before bracket + truncate --size=-2 english.sb + #close json values for key "songs" + echo "]\n}" >> english.sb + ;; + 2) + cat ./utils/header-fr > french.sb + for song in songs/*/*.sg; + do + if grep -q "selectlanguage{french}" $song + then + echo "\t\""`ls $song | sed "s/songs\\///g"`"\"," >> french.sb + fi + done + #remove last coma before bracket + truncate --size=-2 french.sb + #close json values for key "songs" + echo "]\n}" >> french.sb + ;; +esac diff --git a/utils/volume2.sh b/utils/volume2.sh deleted file mode 100755 index b5425cb2..00000000 --- a/utils/volume2.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -# volume-2.sgl generation -ls -1 songs/*/*.sg > tmp ; -grep -vf volume-1.sgl tmp > volume-2.sgl ; -