Add a link to EDIT_CONFIG from ADMIN.
[gruta.git] / Makefile.PL
blobb89f3e0961a112f21943c10f5f3a3443346b7699
1 use ExtUtils::MakeMaker;
2 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
3 # the contents of the Makefile that is written.
5 sub MY::postamble {
6 return <<'EOF';
8 install::
9         rm -rf /usr/share/gruta/templates/artemus
10         mkdir -p /usr/share/gruta/templates/artemus
11         for l in templates/artemus/* ; do \
12                 echo $$l ; \
13                 mkdir -p /usr/share/gruta/$$l ; \
14                 install -m 644 $$l/* /usr/share/gruta/$$l ; \
15         done
16         rm -rf /usr/share/gruta/templates/art5
17         mkdir -p /usr/share/gruta/templates/art5
18         install -m 644 templates/art5/* /usr/share/gruta/templates/art5
19 EOF
22 WriteMakefile(
23         'NAME'          => 'Gruta',
24         'dist'          => { COMPRESS => gzip, SUFFIX => '.gz'},
25         'VERSION_FROM'  => 'Gruta.pm',
26         'EXE_FILES'     => [ 'bin/gruta', 'bin/gruta-mksite' ],
27         'INSTALLSCRIPT' => '/usr/local/bin',