Commit 81c88882 authored by Jakub Jirutka's avatar Jakub Jirutka

buildlab: replace echos in usage with heredoc

parent 948fedc5
...@@ -221,33 +221,35 @@ build_package() { ...@@ -221,33 +221,35 @@ build_package() {
} }
usage() { usage() {
echo "buildlab $program_version" cat <<-EOF
echo " " buildlab $program_version
echo "Common options:"
echo " " Common options:
echo " -q Quiet operation"
echo " -p Path to buildroot" -q Quiet operation
echo " " -p Path to buildroot
echo "Creating build roots (buildlab -C):"
echo " " Creating build roots (buildlab -C):
echo " -m APK repository mirror"
echo " -v APK distribution version" -m APK repository mirror
echo " -a APK repository architecture" -v APK distribution version
echo " -k Enable APK caching" -a APK repository architecture
echo " " -k Enable APK caching
echo "Updating build roots (buildlab -u):"
echo " " Updating build roots (buildlab -u):
echo " No special options."
echo " " No special options.
echo "Building packages (buildlab -b):"
echo " " Building packages (buildlab -b):
echo " -b APKBUILD file"
echo " " -b APKBUILD file
echo "Examples:"
echo " " Examples:
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" sudo ./buildlab -C -p /home/nenolod/buildroot -m dl-3.alpinelinux.org -v edge -a x86_64
echo "sudo ./buildlab -u -p /home/nenolod/buildroot" sudo ./buildlab -b /home/nenolod/aports/main/gnome-panel/APKBUILD -p /home/nenolod/buildroot
sudo ./buildlab -u -p /home/nenolod/buildroot
EOF
} }
unset force unset force
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment