Generate debian-installer task file for multiple archs

This commit is contained in:
Alastair McKinstry 2003-03-08 14:08:00 +00:00
parent 7372dc191b
commit 28c81a492d
1 changed files with 33 additions and 0 deletions

33
tools/generate_di_list Executable file
View File

@ -0,0 +1,33 @@
#!/bin/sh
# Generate a list of packages required for debian-installer
MIRROR=/var/ftp
DIST=sarge
ARCHS="alpha arm hppa hurd-i386 i386 ia64 m68k mips mipsel powerpc s390 sparc sh"
DATE=`date`
cat > debian-installer << EOF
/* List of udebs to be included so that debian-installer works fine
*
* This list can be generated with the command:
* ../utils/generate_di_list
*
* Last update: $DATE
*/
EOF
for arch in $ARCHS ; do
cat >> debian-installer << EOF
#ifdef ARCH_$arch
EOF
grep-dctrl -s Package -n -e '.*' $MIRROR/debian/dists/$DIST/main/debian-installer/binary-$arch/Packages >> debian-installer
cat >> debian-installer << EOF
#endif
EOF
done