]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Maintenance: Remove mkrelease.sh (#2308)
authorFrancesco Chemolli <5175948+kinkie@users.noreply.github.com>
Wed, 19 Nov 2025 01:54:30 +0000 (01:54 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Wed, 19 Nov 2025 23:16:25 +0000 (23:16 +0000)
mkrelease.sh is not used to build Squid v7 and later.

mkrelease.sh [deleted file]

diff --git a/mkrelease.sh b/mkrelease.sh
deleted file mode 100755 (executable)
index cabfb6d..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-#!/bin/sh -ex
-#
-## Copyright (C) 1996-2025 The Squid Software Foundation and contributors
-##
-## Squid software is distributed under GPLv2+ license and includes
-## contributions from numerous individuals and organizations.
-## Please see the COPYING and CONTRIBUTORS files for details.
-##
-
-if [ $# -ne 1 -a $# -ne 2 ]; then
-       echo "Usage: $0 revision [destination]"
-       exit 1
-fi
-
-# infer tags from command line details
-package=squid
-rev=`echo $1 | sed -e "s/^${package}-//"`
-name=${package}-${rev}
-tag=`echo ${name} | tr a-z.- A-Z__`
-startdir=$PWD/
-dst=${2:-$PWD}/
-RELEASE_TIME=`date +%s`
-
-# DPW 2007-08-30
-#
-# check that $rev has the right syntax
-#
-checkrev=`expr $rev : '\([0-9]\.[0-9][0-9]*\(\.[0-9\.]\)*\)'`
-if test "$rev" != "$checkrev" ; then
-       echo "revision '$rev' has incorrect syntax.  Should be like '3.1.0.1'"
-       exit 1;
-fi
-
-po2html=`which po2html`
-if test -z "$po2html" ; then
-    echo "cannot find po2html"
-    exit 1
-fi
-po2txt=`which po2txt`
-if test -z "$po2txt" ; then
-    echo "cannot find po2txt"
-    exit 1
-fi
-
-
-tmpdir=${TMPDIR:-${PWD}}/${name}-mkrelease
-
-rm -rf $name.tar.gz $tmpdir
-trap "rm -rf $tmpdir" 0
-
-mkdir ${tmpdir}
-(git archive --format=tar HEAD | tar -xC ${tmpdir}) || exit 1
-
-if [ ! -f $tmpdir/bootstrap.sh ]; then
-       echo "ERROR! Tag $tag not found"
-fi
-
-cd $tmpdir
-./bootstrap.sh
-eval `grep "^ *PACKAGE_VERSION=" configure | sed -e 's/-VCS//' | sed -e 's/PACKAGE_//'`
-eval `grep "^ *PACKAGE_TARNAME=" configure | sed -e 's/_TARNAME//'`
-if [ ${name} != ${PACKAGE}-${VERSION} ]; then
-       echo "ERROR! The tag and configure version numbers do not match!"
-       echo "${name} != ${PACKAGE}-${VERSION}"
-       exit 1
-fi
-RELEASE=`echo $VERSION | cut -d. -f1,1 | cut -d- -f1`
-ed -s configure.ac <<EOS
-g/${VERSION}-VCS/ s//${VERSION}/
-w
-EOS
-ed -s configure <<EOS
-g/${VERSION}-VCS/ s//${VERSION}/
-w
-EOS
-ed -s include/version.h <<EOS
-g/squid_curtime/ s//${RELEASE_TIME}/
-w
-EOS
-
-./configure --silent --enable-translation
-make dist-all
-
-cd $startdir
-inst() {
-rm -f $2
-cp -p $1 $2
-chmod 444 $2
-}
-inst $tmpdir/${name}.tar.gz    $dst/${name}.tar.gz
-inst $tmpdir/${name}.tar.bz2   $dst/${name}.tar.bz2
-inst $tmpdir/ChangeLog         $dst/ChangeLog.txt
-if [ -f $tmpdir/doc/release-notes/release-$RELEASE.html ]; then
-    inst $tmpdir/RELEASENOTES.html $dst/${name}-RELEASENOTES.html
-    ln -sf ${name}-RELEASENOTES.html $dst/RELEASENOTES.html
-fi