mkdirs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. #!/bin/sh
  2. # Derived from a 9legacy script of the same function.
  3. # find . -type d -empty | awk '{print "\t"$1" \\"}'
  4. lst=( \
  5. ./386/bin \
  6. ./386/bin/ape \
  7. ./386/bin/auth \
  8. ./386/bin/aux \
  9. ./386/bin/bitsy \
  10. ./386/bin/dial \
  11. ./386/bin/disk \
  12. ./386/bin/fossil \
  13. ./386/bin/fs \
  14. ./386/bin/games \
  15. ./386/bin/ip/httpd \
  16. ./386/bin/ndb \
  17. ./386/bin/replica \
  18. ./386/bin/upas \
  19. ./386/bin/usb \
  20. ./386/bin/venti \
  21. ./386/lib \
  22. ./386/lib/ape \
  23. ./acme/bin/386 \
  24. ./acme/bin/alpha \
  25. ./acme/bin/amd64 \
  26. ./acme/bin/arm \
  27. ./acme/bin/mips \
  28. ./acme/bin/power \
  29. ./acme/bin/power64 \
  30. ./amd64/bin \
  31. ./amd64/bin/ape \
  32. ./amd64/bin/auth \
  33. ./amd64/bin/aux \
  34. ./amd64/bin/bitsy \
  35. ./amd64/bin/dial \
  36. ./amd64/bin/disk \
  37. ./amd64/bin/fossil \
  38. ./amd64/bin/fs \
  39. ./amd64/bin/games \
  40. ./amd64/bin/ip/httpd \
  41. ./amd64/bin/ndb \
  42. ./amd64/bin/replica \
  43. ./amd64/bin/upas \
  44. ./amd64/bin/usb \
  45. ./amd64/bin/venti \
  46. ./amd64/lib \
  47. ./amd64/lib/ape \
  48. ./arm/bin/auth \
  49. ./arm/bin/aux \
  50. ./arm/bin/bitsy \
  51. ./arm/bin/dial \
  52. ./arm/bin/disk \
  53. ./arm/bin/fossil \
  54. ./arm/bin/fs \
  55. ./arm/bin/games \
  56. ./arm/bin/ip/httpd \
  57. ./arm/bin/ndb \
  58. ./arm/bin/replica \
  59. ./arm/bin/upas \
  60. ./arm/bin/usb \
  61. ./arm/bin/venti \
  62. ./arm/lib/ape \
  63. ./dist/replica/client \
  64. ./env \
  65. ./fd \
  66. ./lib/audio \
  67. ./lib/face/48x48x1/o \
  68. ./lib/face/48x48x1/v \
  69. ./lib/face/48x48x1/x \
  70. ./lib/face/48x48x1/y \
  71. ./lib/face/48x48x1/z \
  72. ./lib/face/48x48x2/f \
  73. ./lib/face/48x48x2/i \
  74. ./lib/face/48x48x2/l \
  75. ./lib/face/48x48x2/m \
  76. ./lib/face/48x48x2/n \
  77. ./lib/face/48x48x2/o \
  78. ./lib/face/48x48x2/q \
  79. ./lib/face/48x48x2/u \
  80. ./lib/face/48x48x2/v \
  81. ./lib/face/48x48x2/w \
  82. ./lib/face/48x48x2/x \
  83. ./lib/face/48x48x2/y \
  84. ./lib/face/48x48x2/z \
  85. ./lib/face/48x48x4/i \
  86. ./lib/face/48x48x4/o \
  87. ./lib/face/48x48x4/q \
  88. ./lib/face/48x48x4/y \
  89. ./lib/face/48x48x4/z \
  90. ./lib/face/48x48x4/Z \
  91. ./lib/face/48x48x8/i \
  92. ./lib/face/48x48x8/o \
  93. ./lib/face/48x48x8/w \
  94. ./lib/face/48x48x8/x \
  95. ./lib/face/48x48x8/Z \
  96. ./lib/ndb/dhcp \
  97. ./lib/news \
  98. ./lib/tftpd \
  99. ./lp/log \
  100. ./lp/prob \
  101. ./lp/queue \
  102. ./lp/tmp \
  103. ./mail/faxoutqueue \
  104. ./mail/fs \
  105. ./mail/grey/tmp \
  106. ./mail/queue \
  107. ./mail/tmp \
  108. ./misp/bin/ape \
  109. ./mips/bin/auth \
  110. ./mips/bin/aux \
  111. ./mips/bin/bitsy \
  112. ./mips/bin/dial \
  113. ./mips/bin/disk \
  114. ./mips/bin/fossil \
  115. ./mips/bin/fs \
  116. ./mips/bin/games \
  117. ./mips/bin/ip/httpd \
  118. ./mips/bin/ndb \
  119. ./mips/bin/replica \
  120. ./mips/bin/upas \
  121. ./mips/bin/usb \
  122. ./mips/bin/venti \
  123. ./mips/lib/ape \
  124. ./mnt/acme \
  125. ./mnt/apeselect \
  126. ./mnt/apm \
  127. ./mnt/arch \
  128. ./mnt/cd \
  129. ./mnt/cons/cons \
  130. ./mnt/cons/consctl \
  131. ./mnt/consoles \
  132. ./mnt/doc \
  133. ./mnt/exportfs/0 \
  134. ./mnt/exportfs/1 \
  135. ./mnt/exportfs/10 \
  136. ./mnt/exportfs/11 \
  137. ./mnt/exportfs/12 \
  138. ./mnt/exportfs/13 \
  139. ./mnt/exportfs/14 \
  140. ./mnt/exportfs/15 \
  141. ./mnt/exportfs/16 \
  142. ./mnt/exportfs/2 \
  143. ./mnt/exportfs/3 \
  144. ./mnt/exportfs/4 \
  145. ./mnt/exportfs/5 \
  146. ./mnt/exportfs/6 \
  147. ./mnt/exportfs/7 \
  148. ./mnt/exportfs/8 \
  149. ./mnt/exportfs/9 \
  150. ./mnt/keys \
  151. ./mnt/lp \
  152. ./mnt/netkeys \
  153. ./mnt/news \
  154. ./mnt/plumb \
  155. ./mnt/rdb \
  156. ./mnt/temp \
  157. ./mnt/term \
  158. ./mnt/ums \
  159. ./mnt/vmware \
  160. ./mnt/web \
  161. ./mnt/webcookies \
  162. ./mnt/wiki \
  163. ./mnt/wrap \
  164. ./mnt/wsys \
  165. ./n/9 \
  166. ./n/9fat \
  167. ./n/a \
  168. ./n/a: \
  169. ./n/b \
  170. ./n/boot \
  171. ./n/c \
  172. ./n/c: \
  173. ./n/d: \
  174. ./n/dist \
  175. ./n/fossil \
  176. ./n/ftp \
  177. ./n/kfs \
  178. ./n/kremvax \
  179. ./n/paq \
  180. ./n/sid \
  181. ./n/snap \
  182. ./n/sources \
  183. ./n/sourcesdump \
  184. ./n/sourcessnap \
  185. ./n/tapefs \
  186. ./n/temp \
  187. ./n/vac \
  188. ./power64/bin/ape \
  189. ./power64/bin/auth \
  190. ./power64/bin/aux \
  191. ./power64/bin/bitsy \
  192. ./power64/bin/dial \
  193. ./power64/bin/disk \
  194. ./power64/bin/fossil \
  195. ./power64/bin/fs \
  196. ./power64/bin/games \
  197. ./power64/bin/ip/httpd \
  198. ./power64/bin/ndb \
  199. ./power64/bin/replica \
  200. ./power64/bin/upas \
  201. ./power64/bin/usb \
  202. ./power64/bin/venti \
  203. ./power64/lib/ape \
  204. ./power/bin/ape \
  205. ./power/bin/auth \
  206. ./power/bin/aux \
  207. ./power/bin/bitsy \
  208. ./power/bin/dial \
  209. ./power/bin/disk \
  210. ./power/bin/fossil \
  211. ./power/bin/fs \
  212. ./power/bin/games \
  213. ./power/bin/ip/httpd \
  214. ./power/bin/ndb \
  215. ./power/bin/replica \
  216. ./power/bin/upas \
  217. ./power/bin/usb \
  218. ./power/bin/venti \
  219. ./power/lib/ape \
  220. ./rc/bin/dial \
  221. ./rc/bin/postscript \
  222. ./sparc/bin/ape \
  223. ./sparc/bin/auth \
  224. ./sparc/bin/aux \
  225. ./sparc/bin/bitsy \
  226. ./sparc/bin/dial \
  227. ./sparc/bin/disk \
  228. ./sparc/bin/fossil \
  229. ./sparc/bin/games \
  230. ./sparc/bin/ip/httpd \
  231. ./sparc/bin/ndb \
  232. ./sparc/bin/replica \
  233. ./sparc/bin/upas \
  234. ./sparc/bin/venti \
  235. ./sparc/lib/ape \
  236. ./sys/games/sudoku \
  237. ./sys/lib/backup/set1 \
  238. ./sys/lib/dist/bin/386 \
  239. ./sys/lib/dist/pc/empty \
  240. ./sys/lib/dist/pc/glenda/bin/386 \
  241. ./sys/lib/dist/pc/glenda/tmp \
  242. ./sys/lib/dist/pc/multi \
  243. ./sys/lib/git \
  244. ./sys/lib/lp/log \
  245. ./sys/lib/lp/perm \
  246. ./sys/lib/lp/tmp \
  247. ./sys/lib/postscript/afm \
  248. ./sys/lib/ssh \
  249. ./sys/lib/troff/contour \
  250. ./sys/log/timesync.d \
  251. ./sys/src/cmd/gs/obj \
  252. ./sys/src/cmd/ip/rtcp \
  253. ./sys/src/cmd/unix/drawterm/bin \
  254. ./tmp \
  255. ./usr/glenda/bin/386 \
  256. ./usr/glenda/bin/amd64 \
  257. ./usr/glenda/bin/mips \
  258. ./usr/glenda/tmp \
  259. ./bbin \
  260. ./amd64/bbin \
  261. ./386/bbin \
  262. ./arm64/bbin \
  263. ./arm/bbin \
  264. ./mips64/bbin \
  265. ./mips/bbin \
  266. )
  267. for i in "${lst[@]}"; do
  268. mkdir -p $i
  269. done