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 () {
12 if [ -f .hg/patches/series ]; then
13 list_patches_mq
14 else
15 list_patches_PATCHES
16 fi
17}
18
19cat <<EOF
20/* this is an autogenerated file. edit patchlist.sh instead. */
21#include "config.h"
22
23#include <stdio.h>
24#include <stdlib.h>
25
26#include "mutt.h"
27
28void mutt_print_patchlist (void)
29{
30EOF
31
32list_patches | while read patch ; do
33 echo " puts (\"${patch}\");"
34done
35
36echo "}"