view src/create-install-dirs.pl @ 4:fe56b4698cf8

add install-init, and refine pkg.pl.
author Robert McIntyre <rlm@mit.edu>
date Tue, 08 Jan 2013 15:41:29 +0000
parents
children
line wrap: on
line source
1 #!/usr/bin/env perl
3 @create_install_cmd =
4 ("groupadd", "--force", "install");
5 print "@create_install_cmd\n";
6 system(@create_install_cmd) and die $!;
8 sub create_install_dir{
9 @install_cmd =
10 ("install", "-d", "-m",
11 "775", "-o", "root", "-g",
12 "install", $_[0]);
13 print "@install_cmd\n";
14 system(@install_cmd) and die $!;}
16 @install_dirs = qw(
17 /usr/bin
18 /usr/sbin
19 /usr/include
20 /usr/lib
21 /usr/man/man1
22 /usr/man/man2
23 /usr/man/man3
24 /usr/man/man4
25 /usr/man/man5
26 /usr/man/man6
27 /usr/man/man7
28 /usr/man/man8
29 /usr/doc
30 /usr/info
31 /usr/local/man/man1
32 /usr/local/man/man2
33 /usr/local/man/man3
34 /usr/local/man/man4
35 /usr/local/man/man5
36 /usr/local/man/man6
37 /usr/local/man/man7
38 /usr/local/man/man8
39 /usr/local/doc
40 /usr/local/info
41 /usr/share
42 /usr/share/dict
43 /usr/share/doc
44 /usr/share/info
45 /usr/share/locale
46 /usr/share/man/man1
47 /usr/share/man/man2
48 /usr/share/man/man3
49 /usr/share/man/man4
50 /usr/share/man/man5
51 /usr/share/man/man6
52 /usr/share/man/man7
53 /usr/share/man/man8
54 /usr/share/nls
55 /usr/share/misc
56 /usr/share/terminfo
57 /usr/share/zoneinfo
58 /usr/share/i18n
59 /usr/share/aclocal
60 /usr/local/bin
61 /usr/local/etc
62 /usr/local/include
63 /usr/local/lib
64 /usr/local/sbin
65 /usr/local/share
66 /usr/local/share/dict
67 /usr/local/share/doc
68 /usr/local/share/info
69 /usr/local/share/locale
70 /usr/local/share/man/man1
71 /usr/local/share/man/man2
72 /usr/local/share/man/man3
73 /usr/local/share/man/man4
74 /usr/local/share/man/man5
75 /usr/local/share/man/man6
76 /usr/local/share/man/man7
77 /usr/local/share/man/man8
78 /usr/local/share/nls
79 /usr/local/share/misc
80 /usr/local/share/terminfo
81 /usr/local/share/zoneinfo
82 /opt
83 /opt/doc
84 /opt/info
85 /opt/bin
86 /opt/include
87 /opt/lib
88 /opt/man/man1
89 /opt/man/man2
90 /opt/man/man3
91 /opt/man/man4
92 /opt/man/man5
93 /opt/man/man6
94 /opt/man/man7
95 /opt/man/man8
96 /var/lib
97 /var/opt
98 /etc
99 /etc/opt
100 /sbin
101 /bin
102 /lib);
104 foreach $install_dir(@install_dirs){
105 create_install_dir($install_dir);}