xmms patch (f?r etch)
von moor_mat- SNIPPET_TEXT:
-
- #! /bin/sh -e
- ##
- ## All lines beginning with `## DP:' are a description of the patch.
- ## DP: add Accept header in http request
- if [ $# -ne 1 ]; then
- echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
- exit 1
- fi
- case "$1" in
- -patch) patch -f --no-backup-if-mismatch -p1 < $0;;
- -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
- *)
- echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
- exit 1;;
- esac
- exit 0
- @DPATCH@
- diff -urN Input/mpg123/common.c.orig Input/mpg123/common.c
- --- a/Input/mpg123/http.c.orig 2005-11-20 10:56:36.321241464 +0100
- +++ b/Input/mpg123/http.c 2005-11-20 10:50:23.734883200 +0100
- @@ -553,7 +553,7 @@
- "%s%s%s%s%s\r\n",
- file, host, PACKAGE, VERSION,
- proxy_auth ? proxy_auth : "", auth ? auth : "",
- - mpg123_cfg.cast_title_streaming ? "Icy-MetaData:1\r\n" : "",
- + mpg123_cfg.cast_title_streaming ? "Icy-MetaData:1\r\nAccept: */*\r\n" : "",
- mpg123_cfg.use_udp_channel ? udpspace : "",
- range ? temp2 : "");
Quellcode
Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN