Advertisement
Fgvolonterio

.inernal

Nov 28th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.42 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #==========================#
  4. #    Variables Internas    #
  5. #==========================#
  6.  
  7. LINUX=linux-3.16.2
  8. GLIBC=glibc-2.20
  9. TCL=tcl8.6.2
  10. EXPECT=expect5.45
  11. DEJAGNU=dejagnu-1.5.1
  12. CHECK=check-0.9.14
  13. FILE=file-5.19
  14. BINUTILS=binutils-2.24
  15. MPC=mpc-1.0.2
  16. MPFR=mpfr-3.1.2
  17. GMP=gmp-6.0.0
  18. GCC=gcc-4.9.1
  19. BZIP2=bzip2-1.0.6
  20. NCURSES=ncurses-5.9
  21. SED=sed-4.2.2
  22. COREUTILS=coreutils-8.23
  23. M4=m4-1.4.17
  24. GREP=grep-2.20
  25. BASH=bash-4.3
  26. PERL=perl-5.20.0
  27. DIFFUTILS=diffutils-3.3
  28. GAWK=gawk-4.1.1
  29. FINDUTILS=findutils-4.4.2
  30. GETTEXT=gettext-0.19.2
  31. XZ=xz-5.0.5
  32. GZIP=gzip-1.6
  33. MAKE=make-4.0
  34. PATCH=patch-2.7.1
  35. TAR=tar-1.28
  36. TEXINFO=texinfo-5.2
  37. UTILINUX=util-linux-2.25.1
  38.  
  39. #==========================#
  40. #    Funciones Internas    #
  41. #==========================#
  42.  
  43. function prepare_sources() {
  44.     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
  45.         tar -xf $SOURCE -C /mnt/lfs/sources;
  46.     done
  47.     mv /mnt/lfs/sources/$GMP /mnt/lfs/sources/$GCC/gmp
  48.     mv /mnt/lfs/sources/$MPC /mnt/lfs/sources/$GCC/mpc
  49.     mv /mnt/lfs/sources/$MPFR /mnt/lfs/sources/$GCC/mpfr
  50. }
  51.  
  52. function LFS_MAKE() {
  53.     CORES=0
  54.         ./configure --prefix=/tools $1 $2 $3 $4 $5 $6 $7 $8 $9;
  55.         make -j$CORES;
  56.         make -j$CORES install
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement