"Fossies" - the Fresh Open Source Software Archive

Member "hevea-2.35/release/release.sh" (16 Jan 2021, 2342 Bytes) of package /linux/www/hevea-2.35.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 -e
    2 
    3 cd `dirname $0`/..
    4 . release/config.sh
    5 . release/tag.sh
    6 
    7 
    8 #Clean-up 
    9 /bin/rm -rf ${WORKDIR}/htmlgen ${WORKDIR}/${RELEASENAME}
   10 HEVEA=${RELEASENAME}
   11 TAR=$(basename $SRC)
   12 #build source tar (with doc) 
   13 ( cd $WORKDIR && rm -rf ${TAR} ${HEVEA} && wget $SRC && tar zxmf $TAR && rm -rf bugs release )
   14 #Recompile (test)
   15 ( cd $WORKDIR/${HEVEA} && make opt )
   16 #Recompile (produce doc)
   17 ( cd $WORKDIR/${HEVEA}/doc && make manual.ps manual.pdf opt docclean )
   18 #Make final files with their final names
   19 /bin/rm -rf ${WORKDIR}/final
   20 mkdir -p  ${WORKDIR}/final
   21 mv ${WORKDIR}/${HEVEA}/doc/manual.ps ${WORKDIR}/final/${RELEASENAME}-manual.ps
   22 mv ${WORKDIR}/${HEVEA}/doc/manual.pdf ${WORKDIR}/final/${RELEASENAME}-manual.pdf
   23 mv ${WORKDIR}/${HEVEA}/doc/doc ${WORKDIR}/final/${RELEASENAME}-manual
   24 ( cd  ${WORKDIR}/final &&
   25   gzip -f --best ${RELEASENAME}-manual.ps &&\
   26   tar cf  ${RELEASENAME}-manual.tar ${RELEASENAME}-manual &&\
   27   gzip -f --best ${RELEASENAME}-manual.tar &&
   28   /bin/rm -rf ${RELEASENAME}-manual )
   29 ( cd  ${WORKDIR}/${HEVEA} && make clean && /bin/rm -r doc )
   30 ( cd  ${WORKDIR} && tar cf final/${RELEASENAME}.tar ${RELEASENAME} &&\
   31   gzip -f --best final/${RELEASENAME}.tar &&
   32   /bin/rm -rf ${RELEASENAME} )
   33 #Now install files
   34 TOINSTALL="${RELEASENAME}-manual.tar.gz ${RELEASENAME}-manual.ps.gz ${RELEASENAME}-manual.pdf ${RELEASENAME}.tar.gz"
   35 EXTRA="LICENSE README CHANGES hevea.sty"
   36 #FTP
   37 FTPDIR=/tmp/ftp.$$
   38 mkdir -p $FTPDIR
   39 if $DEV
   40 then
   41   /bin/rm -rf $FTPDIR/unstable
   42   mkdir  $FTPDIR/unstable
   43   ( cd $WORKDIR/final && cp ${TOINSTALL} $FTPDIR/unstable )
   44   DFTP=$FTPDIR/unstable
   45 else
   46   ( cd $WORKDIR/final && cp ${TOINSTALL} $FTPDIR )
   47   DFTP=$FTPDIR
   48 fi
   49 #complements
   50 ( cd $WORKDIR/final && tar zxf ${RELEASENAME}.tar.gz &&\
   51   cd ${RELEASENAME} && cp ${EXTRA} ${DFTP} )
   52 #copy to httpd-dir
   53 if $DEV
   54 then
   55   /bin/rm -rf ${HTMLDIR}/distri/unstable
   56   cp -r $DFTP ${HTMLDIR}/distri
   57 else
   58   /bin/rm -rf ${HTMLDIR}/distri
   59   mkdir ${HTMLDIR}/distri
   60   ( cd $DFTP &&\
   61     cp  ${TOINSTALL} ${EXTRA} ${HTMLDIR}/distri )
   62   cp ${HTMLDIR}/distri/${RELEASENAME}.tar.gz ${HTMLDIR}/old
   63 fi
   64 #HTTP DOC
   65 ( cd $WORKDIR/final && tar zxf ${RELEASENAME}-manual.tar.gz )
   66 if $DEV
   67 then
   68   DHTML=${HTMLDIR}/distri/unstable/doc
   69 else
   70   DHTML=${HTMLDIR}/doc
   71 fi
   72 /bin/rm -rf $DHTML
   73 mv $WORKDIR/final/${RELEASENAME}-manual $DHTML
   74 /bin/rm -rf ${WORKDIR}/final
   75 /bin/rm -rf ${FTPDIR}