diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-08-20 15:22:10 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-08-23 00:09:07 +0200 |
commit | 81c8888228fd017a9fd5d3ba6a8d1b647019eba5 (patch) | |
tree | 6e5bcff96618132e5e6fb39edd8ad735a3e004c8 /buildlab.in | |
parent | 948fedc5f7d1c57a5cc172778818c38ed97d134d (diff) | |
download | abuild-81c8888228fd017a9fd5d3ba6a8d1b647019eba5.tar.gz abuild-81c8888228fd017a9fd5d3ba6a8d1b647019eba5.tar.bz2 abuild-81c8888228fd017a9fd5d3ba6a8d1b647019eba5.tar.xz abuild-81c8888228fd017a9fd5d3ba6a8d1b647019eba5.zip |
buildlab: replace echos in usage with heredoc
Diffstat (limited to 'buildlab.in')
-rw-r--r-- | buildlab.in | 56 |
1 files changed, 29 insertions, 27 deletions
diff --git a/buildlab.in b/buildlab.in index 54a852c..b5129ff 100644 --- a/buildlab.in +++ b/buildlab.in @@ -221,33 +221,35 @@ build_package() { } usage() { - echo "buildlab $program_version" - echo " " - echo "Common options:" - echo " " - echo " -q Quiet operation" - echo " -p Path to buildroot" - echo " " - echo "Creating build roots (buildlab -C):" - echo " " - echo " -m APK repository mirror" - echo " -v APK distribution version" - echo " -a APK repository architecture" - echo " -k Enable APK caching" - echo " " - echo "Updating build roots (buildlab -u):" - echo " " - echo " No special options." - echo " " - echo "Building packages (buildlab -b):" - echo " " - echo " -b APKBUILD file" - echo " " - echo "Examples:" - echo " " - echo "sudo ./buildlab -C -p /home/nenolod/buildroot -m dl-3.alpinelinux.org -v edge -a x86_64" - echo "sudo ./buildlab -b /home/nenolod/aports/main/gnome-panel/APKBUILD -p /home/nenolod/buildroot" - echo "sudo ./buildlab -u -p /home/nenolod/buildroot" + cat <<-EOF + buildlab $program_version + + Common options: + + -q Quiet operation + -p Path to buildroot + + Creating build roots (buildlab -C): + + -m APK repository mirror + -v APK distribution version + -a APK repository architecture + -k Enable APK caching + + Updating build roots (buildlab -u): + + No special options. + + Building packages (buildlab -b): + + -b APKBUILD file + + Examples: + + sudo ./buildlab -C -p /home/nenolod/buildroot -m dl-3.alpinelinux.org -v edge -a x86_64 + sudo ./buildlab -b /home/nenolod/aports/main/gnome-panel/APKBUILD -p /home/nenolod/buildroot + sudo ./buildlab -u -p /home/nenolod/buildroot + EOF } unset force |