You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

52 lines
1.3 KiB

  1. #!/bin/sh
  2. #
  3. # $Id: autogen.sh 25025 2007-02-24 09:54:07Z jasper $
  4. #
  5. # Copyright (c) 2002-2005
  6. # The Xfce development team. All rights reserved.
  7. #
  8. # Written for Xfce by Benedikt Meurer <benny@xfce.org>.
  9. #
  10. (type xdt-autogen) >/dev/null 2>&1 || {
  11. cat >&2 <<EOF
  12. autogen.sh: You don't seem to have the Xfce development tools installed on
  13. your system, which are required to build this software.
  14. Please install the xfce4-dev-tools package first, it is available
  15. from http://www.xfce.org/.
  16. EOF
  17. exit 1
  18. }
  19. # verify that po/LINGUAS is present
  20. (test -f po/LINGUAS) >/dev/null 2>&1 || {
  21. cat >&2 <<EOF
  22. autogen.sh: The file po/LINGUAS could not be found. Please check your snapshot
  23. or try to checkout again.
  24. EOF
  25. exit 1
  26. }
  27. # substitute revision and linguas
  28. linguas=`sed -e '/^#/d' po/LINGUAS`
  29. if test -d .git/svn; then
  30. revision=`LC_ALL=C git-svn find-rev HEAD`
  31. elif test -d .git; then
  32. revision=`LC_ALL=C git rev-parse --short HEAD`
  33. else
  34. revision=`LC_ALL=C svn info $0 | awk '/^Revision: / {printf "%05d\n",
  35. $2}'`
  36. fi
  37. sed -e "s/@LINGUAS@/${linguas}/g" \
  38. -e "s/@REVISION@/${revision}/g" \
  39. < "configure.in.in" > "configure.in"
  40. xdt-autogen $@
  41. # xdt-autogen clean does not remove all generated files
  42. (test x"clean" = x"$1") && {
  43. rm -f configure.in
  44. rm -f INSTALL
  45. } || true
  46. # vi:set ts=2 sw=2 et ai: