4f75cf25fd
```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 ```
23 lines
617 B
Diff
23 lines
617 B
Diff
--- a/kernel-shark/src/kernelshark.cpp 2019-07-05 18:23:00.000000000 +0200
|
|
+++ b/kernel-shark/src/kernelshark.cpp 2019-07-08 17:52:19.081010524 +0200
|
|
@@ -35,6 +35,11 @@
|
|
{
|
|
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
QApplication a(argc, argv);
|
|
+ const char* program_name = strrchr(argv[0], '/');
|
|
+ if (nullptr == program_name)
|
|
+ program_name = argv[0];
|
|
+ else
|
|
+ ++program_name;
|
|
|
|
KsMainWindow ks;
|
|
|
|
@@ -48,7 +51,7 @@
|
|
return 0;
|
|
|
|
case 'v':
|
|
- printf("%s - %s\n", basename(argv[0]), KS_VERSION_STRING);
|
|
+ printf("%s - %s\n", program_name, KS_VERSION_STRING);
|
|
return 0;
|
|
|
|
case 'i':
|