/scripts/autoreconf

http://github.com/OpenELEC/OpenELEC.tv · #! · 38 lines · 32 code · 6 blank · 0 comment · 0 complexity · 0e0865ed7953206e01452ebfa1d43653 MD5 · raw file

  1. #!/bin/bash
  2. ################################################################################
  3. # This file is part of OpenELEC - http://www.openelec.tv
  4. # Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
  5. #
  6. # OpenELEC is free software: you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation, either version 2 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # OpenELEC is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
  18. ################################################################################
  19. . config/options $1
  20. if [ ! -f "$PKG_BUILD/configure.in" \
  21. -a ! -f "$PKG_BUILD/configure.ac" ] ; then
  22. echo "configure.in or configure.ac not found"
  23. exit 1
  24. fi
  25. if [ ! -f $PKG_BUILD/.autoreconf-done ] ; then
  26. touch $PKG_BUILD/NEWS $PKG_BUILD/AUTHORS $PKG_BUILD/ChangeLog
  27. mkdir -p $PKG_BUILD/m4
  28. printf "%${BUILD_INDENT}c ${boldmagenta}AUTORECONF${endcolor} $1\n" ' '>&$SILENT_OUT
  29. export BUILD_INDENT=$((${BUILD_INDENT:-1}+$BUILD_INDENT_SIZE))
  30. do_autoreconf $PKG_BUILD
  31. touch $PKG_BUILD/.autoreconf-done
  32. fi