diff options
author | 2017-04-18 07:13:39 +0000 | |
---|---|---|
committer | 2017-04-18 07:13:39 +0000 | |
commit | 8e8855132aac5446b15a9b27d0a2fffdb8e44526 (patch) | |
tree | 58ffbe6d33f83a9aac276846e8234d68c6ef1f39 | |
parent | add a clang comp list for arm64 (diff) | |
download | wireguard-openbsd-8e8855132aac5446b15a9b27d0a2fffdb8e44526.tar.xz wireguard-openbsd-8e8855132aac5446b15a9b27d0a2fffdb8e44526.zip |
same hack logic as maketars. noticed by landry@/semarie@
-rw-r--r-- | distrib/sets/makelocatedb | 11 |
1 files 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 |