Parent Directory | Revision Log | Revision Graph
Initial import
1 | jpp | 1.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 |