We use .tbz packages in -CURRENT now.

Approved by:	re
This commit is contained in:
Murray Stokely 2002-12-08 18:31:03 +00:00
parent 42d5b03cfc
commit 9b7e3080cf
2 changed files with 6 additions and 6 deletions

View File

@ -13,8 +13,8 @@ usage()
[ -f INDEX ] || usage "INDEX file not found"
echo Checking for missing files
sed 's,^\([^|]*\)|.*,All/\1.tgz,' INDEX | xargs ls -l >/dev/null
sed 's,^\([^|]*\)|.*,All/\1.tbz,' INDEX | xargs ls -l >/dev/null
echo Checking for missing dependents
awk -F'|' '{print $9}' INDEX | sed 's/ /\
/g' | sort -u | sed -e /^$/d -e 's/\(.*\)/All\/\1.tgz/' | xargs ls -l >/dev/null
/g' | sort -u | sed -e /^$/d -e 's/\(.*\)/All\/\1.tbz/' | xargs ls -l >/dev/null

View File

@ -20,14 +20,14 @@ old=$(ls | egrep -v "^INDEX$|^All$|^Latest$")
echo Creating new hierarchy
awk -F'|' '{ print $1 " " $7; }' INDEX | while read pkg dirs
do
[ -f All/$pkg.tgz ] || {
echo "All/$pkg.tgz: Non-existent" >&2
[ -f All/$pkg.tbz ] || {
echo "All/$pkg.tbz: Non-existent" >&2
continue
}
for dir in $dirs
do
mkdir -p $dir
[ -e $dir/$pkg.tgz ] && continue
ln -s ../All/$pkg.tgz $dir/$pkg.tgz
[ -e $dir/$pkg.tbz ] && continue
ln -s ../All/$pkg.tbz $dir/$pkg.tbz
done
done