/[smecontribs]/rpms/openssl3/contribs10/genpatches
ViewVC logotype

Contents of /rpms/openssl3/contribs10/genpatches

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Jan 31 17:24:55 2024 UTC (10 months ago) by jpp
Branch: MAIN
CVS Tags: openssl3-3_0_7-5_el7_sme_1, HEAD
Initial import

1 #!/bin/bash
2
3 if [ $# -ne 2 ] ; then
4 echo "Usage:"
5 echo " $0 <git-dir> <base-tag>"
6 exit 1
7 fi
8
9 git_dir="$1"
10 base_tag="$2"
11
12 target_dir="$(pwd)"
13
14 pushd "$git_dir" >/dev/null
15 git format-patch -k -o "$target_dir" "$base_tag" >/dev/null
16 popd >/dev/null
17
18 echo "# Patches exported from source git"
19
20 i=1
21 for p in *.patch ; do
22 printf "# "
23 sed '/^Subject:/{s/^Subject: //;p};d' "$p"
24 printf "Patch%s: %s\n" $i "$p"
25 i=$(($i + 1))
26 done

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed