[BACK]Return to mkrelease.sh CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / cvsweb

File: [cvsweb.bsd.lv] / cvsweb / mkrelease.sh (download)

Revision 4.2, Tue Nov 26 10:58:15 2019 UTC (12 months ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 4.1: +1 -2 lines

delete enscript remnants

#!/bin/bash
# $Id: mkrelease.sh,v 4.2 2019/11/26 10:58:15 schwarze Exp $
# $knu: mkrelease.sh,v 1.1 2005/09/25 20:27:44 scop

if [ -z "$1" ] ; then
    echo "Error: release number required."
    exit 1
fi

set -e

pwd=$(cd $(dirname $0) ; pwd)
rm -f cvsweb-$1.tar*

tmp=`mktemp -d /tmp/.cvsweb.XXXXXX` || exit 1
mkdir $tmp/cvsweb-$1

cp -pR \
  ChangeLog \
  css \
  cvsweb.cgi \
  cvsweb.conf* \
  icons \
  INSTALL \
  NEWS \
  README \
  samples \
  TODO \
  $tmp/cvsweb-$1

cd $tmp
find cvsweb-$1 -type d | xargs chmod 755
find cvsweb-$1 -type f | xargs chmod 644
tar cv --owner=0 --group=0 --exclude CVS --exclude bundle \
  -f $pwd/cvsweb-$1.tar cvsweb-$1
cd $pwd
rm -rf $tmp

gzip --best cvsweb-$1.tar
md5sum cvsweb-$1.tar.gz \
| gpg --no-emit-version --default-key scop@FreeBSD.org --clearsign \
> cvsweb-$1.tar.gz.md5
chmod 644 cvsweb-$1.tar.gz*