imapext-2007
annotate tools/ua @ 0:ada5e610ab86
imap-2007e
author | yuuji@gentei.org |
---|---|
date | Mon, 14 Sep 2009 15:17:45 +0900 |
parents | |
children |
rev | line source |
---|---|
yuuji@0 | 1 #!/bin/sh |
yuuji@0 | 2 |
yuuji@0 | 3 # ======================================================================== |
yuuji@0 | 4 # Copyright 1988-2006 University of Washington |
yuuji@0 | 5 # |
yuuji@0 | 6 # Licensed under the Apache License, Version 2.0 (the "License"); |
yuuji@0 | 7 # you may not use this file except in compliance with the License. |
yuuji@0 | 8 # You may obtain a copy of the License at |
yuuji@0 | 9 # |
yuuji@0 | 10 # http://www.apache.org/licenses/LICENSE-2.0 |
yuuji@0 | 11 # |
yuuji@0 | 12 # |
yuuji@0 | 13 # ======================================================================== |
yuuji@0 | 14 |
yuuji@0 | 15 BASE=`pwd` |
yuuji@0 | 16 |
yuuji@0 | 17 if [ ! -f tools/uahelper ]; then |
yuuji@0 | 18 (cd tools;make) |
yuuji@0 | 19 fi |
yuuji@0 | 20 |
yuuji@0 | 21 if [ ! -d $3 ]; then |
yuuji@0 | 22 mkdir $3 |
yuuji@0 | 23 fi |
yuuji@0 | 24 |
yuuji@0 | 25 for i in $2/Makefile* ; do |
yuuji@0 | 26 if [ -f $i ] ; then |
yuuji@0 | 27 $1 "$BASE/$i" "$BASE/$3" |
yuuji@0 | 28 fi |
yuuji@0 | 29 done |
yuuji@0 | 30 |
yuuji@0 | 31 if [ -f $2/drivers ]; then |
yuuji@0 | 32 $1 "$BASE/$2/drivers" "$BASE/$3" |
yuuji@0 | 33 fi |
yuuji@0 | 34 |
yuuji@0 | 35 if [ -f $2/mkauths ]; then |
yuuji@0 | 36 $1 "$BASE/$2/mkauths" "$BASE/$3" |
yuuji@0 | 37 fi |
yuuji@0 | 38 |
yuuji@0 | 39 cd $2 |
yuuji@0 | 40 |
yuuji@0 | 41 for j in *.[ch]; do |
yuuji@0 | 42 "$BASE/tools/uahelper" < $j > "$BASE/$3/$j" |
yuuji@0 | 43 done |
yuuji@0 | 44 |
yuuji@0 | 45 exit 0 |