man_deblob.sh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. strdel "acx.4" share/man/man4/Makefile
  36. strdel "upgt.4" share/man/man4/Makefile
  37. strdel "yds.4" share/man/man4/Makefile
  38. rep "ural.4" "TEMP.4" share/man/man4/Makefile # The above loop doesn't catch these-- but strdel "ral.4"
  39. strdel "ral.4" share/man/man4/Makefile # catches ural. So ural is switched out with TEMP beforehand.
  40. rep "TEMP.4" "ural.4" share/man/man4/Makefile
  41. linedel "./usr/share/man/man1/fw_update.1" distrib/sets/lists/man/mi