man_deblob.sh 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/bin/sh
  2. #########################
  3. # Name: man_deblob.sh
  4. # Main: jadedctrl
  5. # Lisc: ISC
  6. # Desc: Delobbing OBSD man
  7. # pages for use in
  8. # LBSD.
  9. #########################
  10. # Usage: man_deblob.sh $SRC_DIR
  11. . ./libdeblob.sh
  12. PATCH_DIR=/tmp/man_deblob
  13. if [ -e $PATCH_DIR ]
  14. then
  15. self_destruct_sequence $PATCH_DIR
  16. mkdir $PATCH_DIR
  17. else
  18. mkdir $PATCH_DIR
  19. fi
  20. if test -z $1
  21. then
  22. SRC_DIR=/usr/src
  23. else
  24. SRC_DIR=$1
  25. fi
  26. # man4
  27. fw_list="acx adw adv athn bnx bwi drm fxp inteldrm ips ipw iwi iwm iwn kue malo myx neo otus pgt ral"
  28. fw_list="$fw_list radeondrm rsu rtwn rum siop tht thtc ti uath udl ulpt upgt urtwn uvideo wpi yds zyd"
  29. for man_blob in $fw_list
  30. do
  31. strdel " ${man_blob}.4" share/man/man4/Makefile
  32. strdel "\^${man_blob}.4" share/man/man4/Makefile
  33. linedel "${man_blob}.4" distrib/sets/lists/man/mi
  34. done
  35. linedel "MLINKS+=adv.4 adw.4" share/man/man4/Makefile
  36. linedel "MLINKS+=drm.4 inteldrm.4 drm.4 radeondrm.4" share/man/man4/Makefile
  37. linedel "MLINKS+=tht.4 thtc.4" share/man/man4/Makefile