prim: Introduces Python version
[lcapit-junk-code.git] / lfs-create-dirs
blob48ab11ec0e393f3dc0b5369cbd179d88c141a7b3
1 #!/bin/bash
3 # Creates a standard directory tree on the current
4 # directory
6 mkdir -pv {bin,boot,etc/opt,home,lib,mnt,opt}
7 mkdir -pv {media/{floppy,cdrom},sbin,srv,var}
8 install -dv -m 0750 root
9 install -dv -m 1777 tmp var/tmp
10 mkdir -pv usr/{,local/}{bin,include,lib,sbin,src}
11 mkdir -pv usr/{,local/}share/{doc,info,locale,man}
12 mkdir -v usr/{,local/}share/{misc,terminfo,zoneinfo}
13 mkdir -pv usr/{,local/}share/man/man{1..8}
14 for dir in usr usr/local; do
15 ln -sv share/{man,doc,info} $dir
16 done
17 mkdir -v var/{lock,log,mail,run,spool}
18 mkdir -pv var/{opt,cache,lib/{misc,locate},local}
20 exit 0