2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
[grub.git] / gendistlist.sh
blob102c0c11cef22bfb406ae3f32cbfbda1f047050b
1 #! /bin/sh
3 # Copyright (C) 2005, 2008, 2009 Free Software Foundation, Inc.
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.
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.
14 # Generate a list of distributed files.
16 EXTRA_DISTFILES="AUTHORS COPYING ChangeLog DISTLIST INSTALL NEWS README \
17 THANKS TODO Makefile.in aclocal.m4 autogen.sh config.guess \
18 config.h.in config.sub configure configure.ac gencmdlist.sh \
19 gendistlist.sh genfslist.sh genhandlerlist.sh geninit.sh \
20 geninitheader.sh genkernsyms.sh.in genmk.rb genmoddep.awk \
21 genmodsrc.sh genpartmaplist.sh genparttoollist.sh \
22 genvideolist.sh \
23 gensymlist.sh.in install-sh mkinstalldirs stamp-h.in"
25 DISTDIRS="boot bus commands conf disk docs efiemu font fs hello hook include io \
26 kern lib loader mmap normal partmap parttool script term util video"
28 LC_COLLATE=C
29 export LC_COLLATE
31 for f in $EXTRA_DISTFILES; do
32 echo $f
33 done
35 dir=`dirname $0`
36 cd $dir
38 for dir in $DISTDIRS; do
39 for d in `find $dir -type d ! -name .svn ! -name .bzr | sort`; do
40 find $d -maxdepth 1 -name '*.[chSy]' -o -name '*.mk' -o -name '*.rmk' \
41 -o -name '*.rb' -o -name '*.in' -o -name '*.tex' -o -name '*.texi' \
42 -o -name '*.info' -o -name 'grub.cfg' -o -name 'README' \
43 -o -name '*.sc' -o -name 'mdate-sh' -o -name '*.sh' \
44 -o -name 'grub-dumpdevtree' -o -name '*.lua' | sort
45 done
46 done