"Fossies" - the Fresh Open Source Software Archive

Member "mod_auth_pubtkt-0.14/build.sh" (17 Dec 2020, 769 Bytes) of package /linux/www/apache_httpd_modules/mod_auth_pubtkt-0.14.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/bash
    2 
    3 set -e
    4 set +x
    5 
    6 MOD=mod_auth_pubtkt
    7 VERSION=0.14
    8 
    9 # nuke rubbish we don't want
   10 find . -type f -name Makefile -delete
   11 rm -f configure
   12 
   13 autoreconf -vfi
   14 ./configure
   15 make
   16 
   17 if [[ $1 =~ "rpm" ]] ; then
   18     if [[ -e "$MOD.spec" ]] ; then
   19         mydir=`dirname $0`
   20         tmpdir=`mktemp -d`
   21         
   22         # sanity check
   23         if [ -z "$tmpdir" ] ; then
   24             echo "Error creating tmpdir"
   25             exit 1
   26         fi
   27 
   28         set +x
   29 
   30         cp -r "${mydir}" "${tmpdir}/${MOD}-${VERSION}"
   31         tar -czf "${tmpdir}/${MOD}-${VERSION}.tar.gz" --exclude=".git" -C "${tmpdir}" "${MOD}-${VERSION}"
   32         rpmbuild -ta "${tmpdir}/${MOD}-${VERSION}.tar.gz"
   33         rm -rf "${tmpdir}"
   34     else
   35         echo "Missing RPM spec file"
   36         exit 1
   37     fi
   38 fi