imapext-2007

view tools/ua @ 0:ada5e610ab86

imap-2007e
author yuuji@gentei.org
date Mon, 14 Sep 2009 15:17:45 +0900
parents
children
line source
1 #!/bin/sh
3 # ========================================================================
4 # Copyright 1988-2006 University of Washington
5 #
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
9 #
10 # http://www.apache.org/licenses/LICENSE-2.0
11 #
12 #
13 # ========================================================================
15 BASE=`pwd`
17 if [ ! -f tools/uahelper ]; then
18 (cd tools;make)
19 fi
21 if [ ! -d $3 ]; then
22 mkdir $3
23 fi
25 for i in $2/Makefile* ; do
26 if [ -f $i ] ; then
27 $1 "$BASE/$i" "$BASE/$3"
28 fi
29 done
31 if [ -f $2/drivers ]; then
32 $1 "$BASE/$2/drivers" "$BASE/$3"
33 fi
35 if [ -f $2/mkauths ]; then
36 $1 "$BASE/$2/mkauths" "$BASE/$3"
37 fi
39 cd $2
41 for j in *.[ch]; do
42 "$BASE/tools/uahelper" < $j > "$BASE/$3/$j"
43 done
45 exit 0

UW-IMAP'd extensions by yuuji