imapext-2007

diff tools/ua @ 0:ada5e610ab86

imap-2007e
author yuuji@gentei.org
date Mon, 14 Sep 2009 15:17:45 +0900
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tools/ua	Mon Sep 14 15:17:45 2009 +0900
     1.3 @@ -0,0 +1,45 @@
     1.4 +#!/bin/sh
     1.5 +
     1.6 +# ========================================================================
     1.7 +# Copyright 1988-2006 University of Washington
     1.8 +#
     1.9 +# Licensed under the Apache License, Version 2.0 (the "License");
    1.10 +# you may not use this file except in compliance with the License.
    1.11 +# You may obtain a copy of the License at
    1.12 +#
    1.13 +#     http://www.apache.org/licenses/LICENSE-2.0
    1.14 +#
    1.15 +# 
    1.16 +# ========================================================================
    1.17 +
    1.18 +BASE=`pwd`
    1.19 +
    1.20 +if [ ! -f tools/uahelper ]; then
    1.21 +  (cd tools;make)
    1.22 +fi
    1.23 +
    1.24 +if [ ! -d $3 ]; then
    1.25 + mkdir $3
    1.26 +fi
    1.27 +
    1.28 +for i in $2/Makefile* ; do
    1.29 +  if [ -f $i ] ; then
    1.30 +    $1 "$BASE/$i" "$BASE/$3"
    1.31 +  fi
    1.32 +done
    1.33 +
    1.34 +if [ -f $2/drivers ]; then
    1.35 +  $1 "$BASE/$2/drivers" "$BASE/$3"
    1.36 +fi
    1.37 +
    1.38 +if [ -f $2/mkauths ]; then
    1.39 +  $1 "$BASE/$2/mkauths" "$BASE/$3"
    1.40 +fi
    1.41 +
    1.42 +cd $2
    1.43 +
    1.44 +for j in *.[ch]; do
    1.45 +  "$BASE/tools/uahelper" < $j > "$BASE/$3/$j"
    1.46 +done
    1.47 +
    1.48 +exit 0

UW-IMAP'd extensions by yuuji