200bed5c06
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
30 lines
898 B
Diff
30 lines
898 B
Diff
diff --git src/main.c src/main.c
|
|
index 154f052..b44463c 100644
|
|
--- a/src/main.c
|
|
+++ b/src/main.c
|
|
@@ -290,10 +290,10 @@ static void print_help(char *program_name, int long_help)
|
|
|
|
static void print_version()
|
|
{
|
|
- fprintf(stderr, "HTTPDirFS version " VERSION "\n");
|
|
+ fprintf(stderr, "HTTPDirFS version: VERSION");
|
|
/* --------- Print off SSL engine version --------- */
|
|
curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
|
|
- fprintf(stderr, "libcurl SSL engine: %s\n", data->ssl_version);
|
|
+ fprintf(stderr, "\nlibcurl SSL engine: %s\n", data->ssl_version);
|
|
}
|
|
|
|
static void print_long_help()
|
|
diff --git src/util.h src/util.h
|
|
index d7c7c15..4ae9ce8 100644
|
|
--- a/src/util.h
|
|
+++ b/src/util.h
|
|
@@ -24,7 +24,7 @@
|
|
/**
|
|
* \brief the default user agent string
|
|
*/
|
|
-#define DEFAULT_USER_AGENT "HTTPDirFS-" VERSION
|
|
+#define DEFAULT_USER_AGENT "HTTPDirFS-VERSION"
|
|
|
|
|
|
|