#!/bin/sh
# Regenerate hdlist, root_directory should be the binary
# root_directory where you find generally this structure :
#
# COPYING Mandrake/ RPM-GPG-KEYS VERSION dosutils/ images/ lnx4win/
#  misc/

if [ -z "$1" ];then
   echo "Usage: $(basename $0) /path/to/root_directory/"
   exit 1
fi

cd $1
rm -rf /tmp/.build_hdlist/
./misc/genhdlist_cz2 --noclean --distrib .
./misc/gendepslist2 -o Mandrake/base/depslist Mandrake/base/hdlist.cz2