mirror of
https://github.com/void-linux/void-packages.git
synced 2025-10-10 12:35:10 +02:00
```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 ```
16 lines
550 B
Diff
16 lines
550 B
Diff
--- a/os-probes/mounted/common/90linux-distro 2014-04-16 09:49:59.028554885 +0200
|
|
+++ b/os-probes/mounted/common/90linux-distro 2014-04-16 09:50:54.603990982 +0200
|
|
@@ -116,6 +116,13 @@
|
|
elif [ -e "$dir/sbin/pkgtool" ]; then
|
|
short="Slackware"
|
|
long="Slackware Linux"
|
|
+ elif [ -e "$dir/sbin/xbps-install" ]; then
|
|
+ short="Void"
|
|
+ if file "$dir/sbin/xbps-install"|grep -q 32-bit; then
|
|
+ long="Void Linux 32"
|
|
+ else
|
|
+ long="Void Linux 64"
|
|
+ fi
|
|
elif grep -qs OpenLinux "$dir/etc/issue"; then
|
|
short="Caldera"
|
|
long="Caldera OpenLinux"
|