diff options
Diffstat (limited to 'extra/source/brltty/dump.dos.windows.stuff.sh')
-rwxr-xr-x | extra/source/brltty/dump.dos.windows.stuff.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/extra/source/brltty/dump.dos.windows.stuff.sh b/extra/source/brltty/dump.dos.windows.stuff.sh new file mode 100755 index 00000000..0d94beec --- /dev/null +++ b/extra/source/brltty/dump.dos.windows.stuff.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# Repacks the brltty tarball to remove the unneeded DOS/Windows stuff. + +VERSION=${VERSION:-$(echo brltty-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} + +tar xf brltty-${VERSION}.tar.xz || exit 1 +mv brltty-${VERSION}.tar.xz brltty-${VERSION}.tar.xz.orig +rm -r brltty-${VERSION}/DOS +rm -r brltty-${VERSION}/Windows +tar cf brltty-${VERSION}.tar brltty-${VERSION} +rm -r brltty-${VERSION} +xz -9 brltty-${VERSION}.tar +touch -r brltty-${VERSION}.tar.xz.orig brltty-${VERSION}.tar.xz +rm brltty-${VERSION}.tar.xz.orig |