From 8e8855132aac5446b15a9b27d0a2fffdb8e44526 Mon Sep 17 00:00:00 2001 From: espie Date: Tue, 18 Apr 2017 07:13:39 +0000 Subject: [PATCH] same hack logic as maketars. noticed by landry@/semarie@ --- distrib/sets/makelocatedb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/distrib/sets/makelocatedb b/distrib/sets/makelocatedb index dacc5e46c50..a28dc9a144e 100644 --- a/distrib/sets/makelocatedb +++ b/distrib/sets/makelocatedb @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: makelocatedb,v 1.1 2014/07/09 19:23:28 espie Exp $ +# $OpenBSD: makelocatedb,v 1.2 2017/04/18 07:13:39 espie Exp $ # # Copyright (c) 2001 Theo de Raadt # All rights reserved. @@ -35,8 +35,15 @@ fi arch=`machine` lists=`pwd`/lists +cd ${lists} for i in base comp etc game man; do - cat ${lists}/$i/mi ${lists}/$i/md.${arch} | \ + { + case $i in + comp) + [ -f $i/gcc.${arch} ] && cat $i/gcc.${arch} + [ -f $i/clang.${arch} ] && cat $i/clang.${arch} + ;; + esac; cat $i/mi $i/md.${arch} ; } | \ sed -e "s,^\.,$i${RELEASE}:," done | sort | /usr/libexec/locate.mklocatedb -- 2.20.1