gendistlist.sh 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #! /bin/sh
  2. #
  3. # Copyright (C) 2005, 2008, 2009 Free Software Foundation, Inc.
  4. #
  5. # This gendistlist.sh is free software; the author
  6. # gives unlimited permission to copy and/or distribute it,
  7. # with or without modifications, as long as this notice is preserved.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  11. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  12. # PARTICULAR PURPOSE.
  13. # Generate a list of distributed files.
  14. EXTRA_DISTFILES="AUTHORS COPYING ChangeLog DISTLIST INSTALL NEWS README \
  15. THANKS TODO Makefile.in aclocal.m4 autogen.sh config.guess \
  16. config.h.in config.sub configure configure.ac gencmdlist.sh \
  17. gendistlist.sh genfslist.sh genhandlerlist.sh geninit.sh \
  18. geninitheader.sh genkernsyms.sh.in genmk.rb genmoddep.awk \
  19. genmodsrc.sh genpartmaplist.sh genparttoollist.sh \
  20. genvideolist.sh \
  21. gensymlist.sh.in install-sh mkinstalldirs stamp-h.in"
  22. DISTDIRS="boot bus commands conf disk docs efiemu font fs hello hook include io \
  23. kern lib loader mmap normal partmap parttool script term util video"
  24. LC_COLLATE=C
  25. export LC_COLLATE
  26. for f in $EXTRA_DISTFILES; do
  27. echo $f
  28. done
  29. dir=`dirname $0`
  30. cd $dir
  31. for dir in $DISTDIRS; do
  32. for d in `find $dir -type d ! -name .svn ! -name .bzr | sort`; do
  33. find $d -maxdepth 1 -name '*.[chSy]' -o -name '*.mk' -o -name '*.rmk' \
  34. -o -name '*.rb' -o -name '*.in' -o -name '*.tex' -o -name '*.texi' \
  35. -o -name '*.info' -o -name 'grub.cfg' -o -name 'README' \
  36. -o -name '*.sc' -o -name 'mdate-sh' -o -name '*.sh' \
  37. -o -name 'grub-dumpdevtree' -o -name '*.lua' | sort
  38. done
  39. done