From: espie Date: Tue, 18 Apr 2017 07:13:39 +0000 (+0000) Subject: same hack logic as maketars. noticed by landry@/semarie@ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8e8855132aac5446b15a9b27d0a2fffdb8e44526;p=openbsd same hack logic as maketars. noticed by landry@/semarie@ --- 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