2005-03-19 17:49:19 +00:00
|
|
|
#! /bin/sh
|
|
|
|
#
|
2008-04-13 10:55:19 +00:00
|
|
|
# Copyright (C) 2005, 2008 Free Software Foundation, Inc.
|
2005-03-19 17:49:19 +00:00
|
|
|
#
|
|
|
|
# This gendistlist.sh is free software; the author
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
# with or without modifications, as long as this notice is preserved.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
|
|
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
|
|
# PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
# Generate a list of distributed files.
|
|
|
|
|
|
|
|
EXTRA_DISTFILES="AUTHORS COPYING ChangeLog DISTLIST INSTALL NEWS README \
|
|
|
|
THANKS TODO Makefile.in aclocal.m4 autogen.sh config.guess \
|
|
|
|
config.h.in config.sub configure configure.ac gencmdlist.sh \
|
2008-08-16 20:21:07 +00:00
|
|
|
gendistlist.sh genfslist.sh geninit.sh geninitheader.sh genkernsyms.sh.in \
|
|
|
|
genmk.rb genmoddep.awk genmodsrc.sh genpartmaplist.sh gensymlist.sh.in
|
|
|
|
install-sh mkinstalldirs stamp-h.in"
|
2005-03-19 17:49:19 +00:00
|
|
|
|
2008-08-16 20:21:07 +00:00
|
|
|
DISTDIRS="boot bus commands conf disk docs font fs hello hook include io kern lib \
|
|
|
|
loader normal partmap term util video"
|
2005-03-19 17:49:19 +00:00
|
|
|
|
2008-11-07 22:33:37 +00:00
|
|
|
LC_COLLATE=C
|
|
|
|
export LC_COLLATE
|
|
|
|
|
2005-03-19 17:49:19 +00:00
|
|
|
for f in $EXTRA_DISTFILES; do
|
|
|
|
echo $f
|
|
|
|
done
|
|
|
|
|
|
|
|
dir=`dirname $0`
|
|
|
|
cd $dir
|
|
|
|
|
2005-08-22 17:28:59 +00:00
|
|
|
for dir in $DISTDIRS; do
|
|
|
|
for d in `find $dir -type d | sort`; do
|
2008-08-17 09:12:59 +00:00
|
|
|
find $d -maxdepth 1 -name '*.[chSy]' -o -name '*.mk' -o -name '*.rmk' \
|
|
|
|
-o -name '*.rb' -o -name '*.in' -o -name '*.tex' -o -name '*.texi' \
|
|
|
|
-o -name 'grub.cfg' -o -name 'README' -o -name '*.sc' -o -name 'mdate.sh' \
|
2005-08-22 17:28:59 +00:00
|
|
|
| sort
|
|
|
|
done
|
|
|
|
done
|