few things. 1) use doesn't echo to stdout/stderr; hasn't since 2.0.51 (thus the > /dev/null isn't needed) 2) prepalldocs invocation, prepman invocation, all uneeded.
This is unsupported, broken, and unfetchable.