man_deblob.sh 858 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. set -A fw_list acx adw adv athn bnx bwi drm fxp inteldrm ips ipw iwi iwm \
  28. iwn kue malo myx neo otus pgt ral radeondrm rsu rtwn rum siop tht \
  29. thtc ti uath udl ulpt upgt urtwn uvideo wpi yds zyd
  30. for man_blob in "${fw_list[@]}"
  31. do
  32. strdel "\<${man_blob}.4\>" share/man/man4/Makefile
  33. linedel "\<${man_blob}.4\>" distrib/sets/lists/man/mi
  34. done
  35. linedel "./usr/share/man/man1/fw_update.1" distrib/sets/lists/man/mi