Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #==========================#
- # Variables Internas #
- #==========================#
- LINUX=linux-3.16.2
- GLIBC=glibc-2.20
- TCL=tcl8.6.2
- EXPECT=expect5.45
- DEJAGNU=dejagnu-1.5.1
- CHECK=check-0.9.14
- FILE=file-5.19
- BINUTILS=binutils-2.24
- MPC=mpc-1.0.2
- MPFR=mpfr-3.1.2
- GMP=gmp-6.0.0
- GCC=gcc-4.9.1
- BZIP2=bzip2-1.0.6
- NCURSES=ncurses-5.9
- SED=sed-4.2.2
- COREUTILS=coreutils-8.23
- M4=m4-1.4.17
- GREP=grep-2.20
- BASH=bash-4.3
- PERL=perl-5.20.0
- DIFFUTILS=diffutils-3.3
- GAWK=gawk-4.1.1
- FINDUTILS=findutils-4.4.2
- GETTEXT=gettext-0.19.2
- XZ=xz-5.0.5
- GZIP=gzip-1.6
- MAKE=make-4.0
- PATCH=patch-2.7.1
- TAR=tar-1.28
- TEXINFO=texinfo-5.2
- UTILINUX=util-linux-2.25.1
- #==========================#
- # Funciones Internas #
- #==========================#
- function prepare_sources() {
- for SOURCE in /mnt/lfs/.sources-back/{binutils,gcc,mpc,mpfr,gmp,linux,glibc,tcl,expect,dejagnu,check,ncurses,bash,bzip2,coreutils,diffutils,file,findutils,gawk,gettext,grep,gzip,m4,make,patch,sed,tar,perl,texinfo,util-linux,xz,openssl,wget}*.tar.*; do
- tar -xf $SOURCE -C /mnt/lfs/sources;
- done
- mv /mnt/lfs/sources/$GMP /mnt/lfs/sources/$GCC/gmp
- mv /mnt/lfs/sources/$MPC /mnt/lfs/sources/$GCC/mpc
- mv /mnt/lfs/sources/$MPFR /mnt/lfs/sources/$GCC/mpfr
- }
- function LFS_MAKE() {
- CORES=0
- ./configure --prefix=/tools $1 $2 $3 $4 $5 $6 $7 $8 $9;
- make -j$CORES;
- make -j$CORES install
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement