mutt stable branch with some hacks
1#!/bin/sh --
2
3list_patches_PATCHES () {
4 cat -
5}
6
7list_patches_mq () {
8 hg qapplied | sed -e 's/^/mq-/'
9}
10
11list_patches_guilt () {
12 guilt applied | sed -e 's/^/guilt-/'
13}
14
15list_patches () {
16 if [ -d .git/patches ]; then
17 list_patches_guilt
18 elif [ -f .hg/patches/series ]; then
19 list_patches_mq
20 else
21 list_patches_PATCHES
22 fi
23}
24
25cat <<EOF
26/* this is an autogenerated file. edit patchlist.sh instead. */
27#include "config.h"
28
29#include <stdio.h>
30#include <stdlib.h>
31
32#include "mutt.h"
33
34void mutt_print_patchlist (void)
35{
36EOF
37
38list_patches | while read patch ; do
39 echo " puts (\"${patch}\");"
40done
41
42echo "}"