Skip to content

Commit a47ec8c

Browse files
authored
Merge pull request #2 from claui/drop-macos-support
Drop macOS support (and dependency on `xxargs`)
2 parents b85794d + 910688c commit a47ec8c

4 files changed

Lines changed: 9 additions & 12 deletions

File tree

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ If you do use znapzupport, be advised that it is largely untested.
1414

1515
To use znapzupport, you need:
1616

17-
- Linux with `bash`, `sudo`, and `coreutils` installed (znapzupport may run on macOS but that’s now unmaintained and thus unsupported);
17+
- Linux with `bash`, `sudo`, and `coreutils` installed (znapzupport no longer runs on macOS);
1818

1919
- OpenZFS;
2020

@@ -25,15 +25,12 @@ To use znapzupport, you need:
2525

2626
## Installation
2727

28-
1. Make sure you have [Homebrew](https://brew.sh) installed.
28+
If you use the AUR, see this package:
2929

30-
2. Run `brew tap claui/public` if you haven’t already done so.
30+
https://aur.archlinux.org/packages/znapzupport
3131

32-
3. Run:
33-
34-
```
35-
brew install znapzupport
36-
```
32+
You can install znapzupport manually by copying the entire project directory to any location;
33+
see the [PKGBUILD](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=znapzupport) on the AUR for an example.
3734

3835

3936
# The commands
@@ -177,7 +174,7 @@ This suite of programs is in no way affiliated with, nor has it any connection t
177174
178175
# License
179176
180-
Copyright (c) 2018 – 2020 Claudia <[email protected]>
177+
Copyright (c) 2018 – 2022 Claudia <[email protected]>
181178
182179
Permission to use, copy, modify, and/or distribute this software for
183180
any purpose with or without fee is hereby granted, provided that the

libexec/znaphodl.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export -f __znaphodl__target_dataset_record
112112
function __znaphodl__load_tagged_source_snapshot {
113113
tagged_source_snapshot="$(
114114
zfs list -H -t snapshot -o name "${source_dataset}" \
115-
| xxargs -r -n 1 -P 16 zfs holds -r -H \
115+
| xargs -r -n 1 -P 16 zfs holds -r -H \
116116
| awk -F '\t' -v "tag=${source_hold_tag}" \
117117
'$2 == tag && found {
118118
print "Duplicate tag: "tag > "/dev/stderr"; exit 1

libexec/znaphodlz.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function __znaphodlz {
3030
}; then
3131
echo $'\n'"Home dataset ${dataset}"
3232
zfs list -H -t snapshot -o name "${dataset}" \
33-
| xxargs -r -n 1 -P 16 zfs holds -r -H \
33+
| xargs -r -n 1 -P 16 zfs holds -r -H \
3434
| cut -f '1,2'
3535
fi
3636
done

libexec/znaplizt.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function __znaplizt__summarize_dataset {
1010
used,logicalused,usedbydataset`
1111
`,referenced,logicalreferenced,usedbysnapshots \
1212
"${dataset}" \
13-
| xxargs -r printf '%s %-18s%10s\n'
13+
| xargs -r printf '%s %-18s%10s\n'
1414
}
1515

1616
export -f __znaplizt__summarize_dataset

0 commit comments

Comments
 (0)