"Fossies" - the Fresh Open Source Software Archive

Member "ark-20050419/arksf1/ark-release/mk-release" (18 Apr 2005, 5419 Bytes) of package /linux/privat/old/ark-arksf1-20050419.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #! /bin/sh
    2 ################################################################
    3 # 
    4 # Copyright (c) 2001-2005, Will Partain
    5 # All rights reserved.
    6 # 
    7 # Redistribution and use in source and binary forms, with or
    8 # without modification, are permitted provided that the
    9 # following conditions are met:
   10 # 
   11 # * Redistributions of source code must retain the above
   12 #   copyright notice, this list of conditions and the
   13 #   following disclaimer. 
   14 # 
   15 # * Redistributions in binary form must reproduce the above
   16 #   copyright notice, this list of conditions and the
   17 #   following disclaimer in the documentation and/or other
   18 #   materials provided with the distribution.
   19 # 
   20 # * Neither the name of the Arusha Project nor the names of
   21 #   its contributors may be used to endorse or promote
   22 #   products derived from this software without specific prior
   23 #   written permission.
   24 # 
   25 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
   26 # CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
   27 # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
   28 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   29 # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
   30 # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   31 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
   32 # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
   33 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   34 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   35 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
   36 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
   37 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   38 # 
   39 ################################################################
   40 
   41 # make tarballs for some Arusha teams.
   42 
   43 TAR=/our/bin/tar
   44 
   45 ROOT=$1
   46 ROOT_SRC=$ROOT/ark
   47 VERSION=$2
   48 TBTYPE=$3
   49 if [ ! -d $ROOT ] ; then
   50     echo bad so-called ROOT dir: $ROOT >&2
   51     exit 1
   52 fi
   53 if [ ! -d $ROOT_SRC ] ; then
   54     echo so-called ROOT dir does not have ark subdir: $ROOT_SRC >&2
   55     exit 1
   56 fi
   57 if [ "x$TBTYPE" = "x" ] ; then
   58     TBTYPE=private
   59 fi
   60 
   61 TEAMS="ARK sidai arksf1 simple1 sample1 glasli2 verilab2"
   62 arktmp=/tmp/ark.$$
   63 
   64 # exclude list for both public/private
   65 cat > $arktmp.excl <<EOF
   66 pkgbuild
   67 *-orig
   68 *-OLD
   69 *-OLD-UNUSED
   70 .#*
   71 *-MAYBE
   72 *-SAVE
   73 *.dtd
   74 *.doc
   75 *.ppt
   76 *.dvi
   77 *.depot.gz
   78 *.log
   79 *.xmla
   80 *.ps
   81 *.pyc
   82 *.ptlc
   83 *.pyo
   84 *.tex
   85 *~
   86 .#Makefile.1.1
   87 .svn
   88 CVS
   89 TAGS
   90 EOF
   91 
   92 if   [ $TBTYPE = 'private' ] ; then
   93     priv='-priv'
   94     TEAMS="$TEAMS glasli2-private glasli1 glasli1-private isli1 isli1-private mot0 sample2 scodt0 scodt0-private verilab2-private"
   95 elif [ $TBTYPE != 'public' ] ; then
   96     echo 'duff tarball type (not public or private)' 1>&2
   97     exit 1
   98 else
   99     priv=''
  100     # add more constraints
  101     cat >> $arktmp.excl <<EOF2
  102 .cvsignore
  103 amanda.conf.m4
  104 amanda.conf.tmpl
  105 ark3.tgz
  106 design-docs
  107 exclude-ccase.gtar.m4
  108 exclude-ccase.gtar.tmpl
  109 exclude.gtar.m4
  110 exclude.gtar.tmpl
  111 getargs-note.txt
  112 hosts.allow.m4
  113 hosts.allow.tmpl
  114 hosts.deny.m4
  115 hosts.deny.tmpl
  116 misc-notes.txt
  117 promo-docs
  118 snippets
  119 sudoers.m4
  120 sudoers.tmpl
  121 EOF2
  122 fi
  123 
  124 if [ "x$VERSION" = "x" ] ; then
  125     echo 'must give version as first argument' 1>&2
  126     exit 1
  127 fi
  128 
  129 set -e
  130 set -u
  131 set -x
  132 
  133 cd $ROOT
  134 /bin/rm -rf ark-$VERSION
  135 for team in $TEAMS ; do
  136     mkdir -p ark-$VERSION/$team
  137 done
  138 
  139 for team in $TEAMS ; do
  140     if [ -d $ROOT_SRC/$team ] ; then
  141         cd $ROOT_SRC/$team
  142         # remove any webpage detritus:
  143         if [ -d webpages -a -f webpages/Makefile ] ; then
  144             ( cd webpages && make clean )
  145         fi
  146         $TAR -c -X $arktmp.excl -f - . | ( cd $ROOT/ark-$VERSION/$team && $TAR xf - )
  147 
  148     # remove some verilab2 stuff:
  149     if [ "$team" = 'verilab2' ] ; then
  150         cd $ROOT/ark-$VERSION/$team
  151             # twiki-config should probably go through
  152         /bin/rm    ./client/[A-Za-z]*.xml || /bin/true # (in case none)
  153         /bin/rm    ./dchunk/home-[A-Za-z]*.xml
  154         /bin/rm    ./device/[A-Za-z]*.xml
  155         /bin/rm    ./host/[A-Za-z]*.html
  156         /bin/rm    ./host/[A-Za-z]*.txt
  157         /bin/rm    ./license/[A-Za-z]*.xml
  158         /bin/rm    ./reminders/*
  159         /bin/rm    ./samba-config/smb.conf.tmpl
  160 #OK     /bin/rm    ./sendmail-config/aliases.tmpl
  161         /bin/rm    ./sendmail-config/spamassassin.config.tmpl
  162         /bin/rm    ./sendmail-config/aliases-mailman.tmpl
  163         /bin/rm    ./sendmail-config/catch-all.procmailrc.tmpl
  164 #OK     /bin/rm    ./sendmail-config/genericstable.tmpl
  165         /bin/rm    ./sendmail-config/virtusertable.tmpl
  166         /bin/rm    ./support-contract/[A-Za-z]*.xml
  167         /bin/rm    ./sysadmin-docs/mailman-admin.htma
  168         /bin/rm    ./sysadmin-docs/license-mgmt.htma
  169         /bin/rm    ./sysadmin-docs/it-spending.htma
  170         /bin/rm    ./user/[A-Za-z]*.xml
  171         /bin/rm    ./vendor/[A-Za-z]*.xml
  172         /bin/rm    ./xemacs-site-packages/lisp/specman-mode.el
  173         /bin/rm    ./xemacs-site-packages/lisp/vera-mode.el
  174         /bin/rm -r ./TWiki-config 
  175         /bin/rm -r ./sieves-of-the-departed
  176         /bin/rm -r ./sieves-of-the-living
  177         /bin/rm    ./cyrus-imapd-config/cyrus.conf.tmpl
  178         /bin/rm -r ./gen-utils
  179         /bin/rm -r ./quickhacks
  180     elif [ "$team" = 'glasli2' ] ; then
  181         cd $ROOT/ark-$VERSION/$team
  182 #       /bin/rm    ./automount-maps/auto_local.tmpl
  183 #       /bin/rm    ./automount-maps/auto_users.tmpl
  184     fi
  185     fi
  186 done
  187 
  188 cd $ROOT
  189 for team in $TEAMS ; do
  190     /bin/rm -f ark-$team-$VERSION$priv.tar.gz
  191     $TAR -c -z -f ark-$team-$VERSION$priv.tar.gz ark-$VERSION/$team
  192 done
  193 
  194 # put these back:
  195 #OLD: ( cd ark/scodt0/webpages && make )
  196 
  197 /bin/rm -f $arktmp*
  198 exit 0