buildVLCKit.sh 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #!/bin/sh
  2. # Copyright (C) Pierre d'Herbemont, 2010
  3. # Copyright (C) Felix Paul Kühne, 2012-2016
  4. set -e
  5. FORWARDEDOPTIONS=""
  6. if [ -z "$MAKE_JOBS" ]; then
  7. CORE_COUNT=`sysctl -n machdep.cpu.core_count`
  8. let MAKE_JOBS=$CORE_COUNT+1
  9. fi
  10. usage()
  11. {
  12. cat << EOF
  13. This is a LEGACY WRAPPER to retain compatibility
  14. ------> UPGRADE YOUR BUILD SYSTEM <------
  15. EOF
  16. }
  17. spushd()
  18. {
  19. pushd "$1" 2>&1> /dev/null
  20. }
  21. spopd()
  22. {
  23. popd 2>&1> /dev/null
  24. }
  25. info()
  26. {
  27. local green="\033[1;32m"
  28. local normal="\033[0m"
  29. echo "[${green}info${normal}] $1"
  30. }
  31. while getopts "hvwsfbdntlk:" OPTION
  32. do
  33. case $OPTION in
  34. h)
  35. usage
  36. exit 1
  37. ;;
  38. v)
  39. FORWARDEDOPTIONS+=" -v"
  40. ;;
  41. d)
  42. FORWARDEDOPTIONS+=" -d"
  43. ;;
  44. w)
  45. FORWARDEDOPTIONS+=" -w"
  46. ;;
  47. n)
  48. FORWARDEDOPTIONS+=" -n"
  49. ;;
  50. l)
  51. FORWARDEDOPTIONS+=" -l"
  52. ;;
  53. k)
  54. FORWARDEDOPTIONS+=" -k" $OPTARG
  55. ;;
  56. ?)
  57. usage
  58. exit 1
  59. ;;
  60. esac
  61. done
  62. shift $(($OPTIND - 1))
  63. out="/dev/null"
  64. if [ "$VERBOSE" = "yes" ]; then
  65. out="/dev/stdout"
  66. fi
  67. if [ "x$1" != "x" ]; then
  68. usage
  69. exit 1
  70. fi
  71. info "This is a LEGACY wrapper to retain compability with the previous build system"
  72. info "Consider UPGRADING NOW"
  73. ./buildMobileVLCKit.sh -x $FORWARDEDOPTIONS
  74. exit 0