opt: cygfuse: fix install scripts

This commit is contained in:
Bill Zissimopoulos 2018-07-25 21:23:29 -07:00
parent 897a08700b
commit ec4197d8b7
2 changed files with 12 additions and 8 deletions

View File

@ -1,15 +1,16 @@
cd "$(dirname "$0")"
case $(uname -m) in
x86_64)
tar -C/ -xaf x64/fuse-2.*.tar.xz
tar -C/ -xaf x64/fuse-3.*.tar.xz
tar -C/ -xaf x64/fuse-*.tar.xz
tar -C/ -xaf x64/fuse3-*.tar.xz
;;
i686)
tar -C/ -xaf x86/fuse-2.*.tar.xz
tar -C/ -xaf x86/fuse-3.*.tar.xz
tar -C/ -xaf x86/fuse-*.tar.xz
tar -C/ -xaf x86/fuse3-*.tar.xz
;;
*)
echo unsupported architecture 1>&2
exit 1
;;
esac
echo FUSE for Cygwin installed.

View File

@ -1,13 +1,16 @@
cd "$(dirname "$0")"
case $(uname -m) in
x86_64)
tar -taf x64/fuse-2.*.tar.xz | sed -e '/\/$/d' -e 's/.*/\/&/' | xargs rm -f ;;
tar -taf x64/fuse-3.*.tar.xz | sed -e '/\/$/d' -e 's/.*/\/&/' | xargs rm -f ;;
tar -taf x64/fuse-*.tar.xz | sed -e '/\/$/d' -e 's/.*/\/&/' | xargs rm -f
tar -taf x64/fuse3-*.tar.xz | sed -e '/\/$/d' -e 's/.*/\/&/' | xargs rm -f
;;
i686)
tar -taf x86/fuse-2.*.tar.xz | sed -e '/\/$/d' -e 's/.*/\/&/' | xargs rm -f ;;
tar -taf x86/fuse-3.*.tar.xz | sed -e '/\/$/d' -e 's/.*/\/&/' | xargs rm -f ;;
tar -taf x86/fuse-*.tar.xz | sed -e '/\/$/d' -e 's/.*/\/&/' | xargs rm -f
tar -taf x86/fuse3-*.tar.xz | sed -e '/\/$/d' -e 's/.*/\/&/' | xargs rm -f
;;
*)
echo unsupported architecture 1>&2
exit 1
;;
esac
echo FUSE for Cygwin uninstalled.