Changeset 9728b23 for LFS/master.sh


Ignore:
Timestamp:
05/25/2020 06:47:48 AM (4 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
6caa5b8
Parents:
a26389a
Message:

Check terminal size before starting build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/master.sh

    ra26389a r9728b23  
    492492    cat << EOF
    493493
    494 all:    ck_UID mk_SETUP mk_LUSER mk_SUDO mk_CHROOT mk_BOOT create-sbu_du-report mk_BLFS_TOOL mk_CUSTOM_TOOLS
     494all:    ck_UID ck_terminal mk_SETUP mk_LUSER mk_SUDO mk_CHROOT mk_BOOT create-sbu_du-report mk_BLFS_TOOL mk_CUSTOM_TOOLS
    495495$teardownat
    496496        @sudo make do_housekeeping
     
    531531          echo "--------------------------------------------------"; \\
    532532          echo "You cannot run this makefile from the root account"; \\
     533          echo "--------------------------------------------------"; \\
     534          exit 1; \\
     535        fi
     536
     537ck_terminal:
     538        @stty size | read LINES COLUMNS; \\
     539        if (( LINES < 24 )) || (( COLUMNS < 80 )) ; then \\
     540          echo "--------------------------------------------------"; \\
     541          echo "Terminal too small: \$\$COLUMNS columns x \$\$LINES lines";\\
     542          echo "Minimum: 80 columns x 24 lines";\\
    533543          echo "--------------------------------------------------"; \\
    534544          exit 1; \\
Note: See TracChangeset for help on using the changeset viewer.