summaryrefslogtreecommitdiff
path: root/emulators/vmware/scripts/extract
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/vmware/scripts/extract')
-rw-r--r--emulators/vmware/scripts/extract27
1 files changed, 12 insertions, 15 deletions
diff --git a/emulators/vmware/scripts/extract b/emulators/vmware/scripts/extract
index 00f5cee5b5e1..7d97cc2d9f09 100644
--- a/emulators/vmware/scripts/extract
+++ b/emulators/vmware/scripts/extract
@@ -1,26 +1,23 @@
#!/bin/sh
-#exec 1>&2
-#echo $@
-#env
case $1 in
- vmmon*)
- target=vmmon
- ;;
- vmnet*)
- target=vmnet
- ;;
- *)
- echo unknown patch $1
- exit 64
- ;;
+vmmon*)
+ target=vmmon
+ ;;
+vmnet*)
+ target=vmnet
+ ;;
+*)
+ echo unknown patch $1
+ exit 64
+ ;;
esac
dir=${WRKSRC}/lib/modules/source
tar -xf ${dir}/${target}.tar -C ${WRKSRC}
tar -zxf $1 -C ${WRKSRC}
if [ $target = vmmon ] ; then
- Makefile=${WRKSRC}/vmmon-only/Makefile
- mv ${Makefile}.FreeBSD $Makefile
+ Makefile=${WRKSRC}/vmmon-only/Makefile
+ mv ${Makefile}.FreeBSD $Makefile
fi
cat ${WRKSRC}/${target}-freebsd.diff