mock-prep.sh 916 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/bin/bash
  2. arch=$1
  3. shift
  4. if [ -z "$arch" ]; then
  5. echo "Specify if 32 or 64 arch sync"
  6. exit 1
  7. fi
  8. PREFIX=`dirname "$0"`
  9. if [ -r ./mock-config.txt ]; then
  10. echo "Reading ./mock-config.txt"
  11. . ./mock-config.txt
  12. else
  13. echo "Missig mock-config.txt"
  14. exit 1
  15. fi
  16. if [ $arch = "32" ]; then
  17. ROOT=$ROOT32
  18. EXTRA=$EXTRA32
  19. elif [ $arch = "64" ]; then
  20. ROOT=$ROOT64
  21. EXTRA=$EXTRA64
  22. else
  23. echo "Pick a correct sync arch (32 or 64)"
  24. exit
  25. fi
  26. if [ "$1" == "init" ]; then
  27. mock -r $ROOT --init
  28. shift
  29. fi
  30. mock -r $ROOT --install ccache dos2unix \
  31. pkgconfig mesa-libGLU-devel \
  32. libX11-devel libXrandr-devel libXmu-devel \
  33. libXi-devel libXext-devel libXft-devel \
  34. alsa-lib-devel freeglut-devel \
  35. libtiff-devel curl-devel \
  36. pulseaudio-libs-devel freetype-devel cmake28 $EXTRA \
  37. libpng-devel libjpeg-devel zlib-devel fltk \
  38. vim-enhanced libXinerama-devel libXpm-devel \
  39. $*