* clear out some warnings by gcc 9.3.1.
[alpine.git] / imap / tools / ua
bloba188b56ceb7cbfbe0cb1c1bb19162947ae07c67c
1 #!/bin/sh
3 # ========================================================================
4 # Copyright 1988-2006 University of Washington
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
13 # ========================================================================
15 BASE=`pwd`
17 if [ ! -f tools/uahelper ]; then
18 (cd tools;make)
21 if [ ! -d $3 ]; then
22 mkdir $3
25 for i in $2/Makefile* ; do
26 if [ -f $i ] ; then
27 $1 "$BASE/$i" "$BASE/$3"
29 done
31 if [ -f $2/drivers ]; then
32 $1 "$BASE/$2/drivers" "$BASE/$3"
35 if [ -f $2/mkauths ]; then
36 $1 "$BASE/$2/mkauths" "$BASE/$3"
39 cd $2
41 for j in *.[ch]; do
42 "$BASE/tools/uahelper" < $j > "$BASE/$3/$j"
43 done
45 exit 0