songy

telegram bot as a songbook
git clone git://git.relim.de/songy.git
Log | Files | Refs | README | LICENSE

commit 2868b005e9ad0a5cca9982bf919551a4273ce6d2
parent d8d0227eed3f6f1514e5c3cd7734482640e3d133
Author: Robin <kroekerrobin@gmail.com>
Date:   Sun, 19 Feb 2023 18:09:15 +0100

Sort '/list' output alphabetically

Also add build_for_release.sh

Diffstat:
Abuild_for_release.sh | 10++++++++++
Msrc/main.rs | 1+
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/build_for_release.sh b/build_for_release.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +# Using musl means everything is compiled statically +# which results in an independant binary be able to +# run in on any x86_64 based system. (That's how I understand it) +read -p "Version Number (e.g. v1.2.3): " versionNumber +cmds[0]="git tag -a $versionNumber -m $versionNumber" +cmds[1]="cargo build -r --target x86_64-unknown-linux-musl" +cmds[2]="cp target/x86_64-unknown-linux-musl/release/songs ." +cmds[3]="mv songs songs_$versionNumber_x86_64-unknown-linux-musl" diff --git a/src/main.rs b/src/main.rs @@ -240,5 +240,6 @@ fn get_all_songs(songs_path: &String) -> Vec<String> { println!("Cannot open/read or what ever the --songs-path."); } } + songs.sort_by_key(|name| name.to_lowercase()); return songs; }