Changeset 154
- Timestamp:
- Jan 17, 2018, 9:58:10 PM (7 years ago)
- Location:
- trunk/project-meta
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/project-meta/Makefile
r152 r154 18 18 @install -d -m 0755 -o root -g root $(DESTDIR)/$(SHAREDIR) 19 19 @install -d -m 0755 -o root -g root $(DESTDIR)/$(SHAREDIR)/licence.d 20 @install -d -m 0755 -o root -g root $(DESTDIR)/$(SHAREDIR)/template.d 20 21 #@install -d -m 0755 -o root -g root $(DESTDIR)/$(MANDIR) 21 22 … … 26 27 install -m 0644 -o root -g root PROJECT-META.sample.yml $(DESTDIR)/$(SHAREDIR) 27 28 install -m 0644 -o root -g root licence.d/*.txt $(DESTDIR)/$(SHAREDIR)/licence.d 29 install -m 0644 -o root -g root licence.d/*.tt $(DESTDIR)/$(SHAREDIR)/template.d 28 30 29 31 #@install -d -m 0755 -o root -g root $(DESTDIR)/$(COMPDIR) -
trunk/project-meta/project-meta
r153 r154 10 10 use Getopt::Long(); 11 11 use Cwd(); 12 use Template; 13 12 14 13 15 my ($verbose); … … 80 82 81 83 my $acronym = $meta->{'project'}{'acronym'}; 82 my $current_dir = "/fsnet/project/coriolis/2014/14CARR" ; #Cwd::getcwd();84 my $current_dir = Cwd::getcwd(); 83 85 my $dap_folder = $meta->{'public-dap'}{'dap-folder'}; 84 86 … … 106 108 my $meta = YAML::Syck::LoadFile("PROJECT-META.yml"); 107 109 my $acronym = $meta->{'project'}{'acronym'}; 108 my $current_dir = "/fsnet/project/coriolis/2014/14CARR" ; #Cwd::getcwd();110 my $current_dir = Cwd::getcwd(); 109 111 my $dap_folder = $meta->{'public-dap'}{'dap-folder'}; 110 112 … … 133 135 sub cmd_make_author { 134 136 my $meta = YAML::Syck::LoadFile("PROJECT-META.yml"); 137 138 my $current_dir = Cwd::getcwd(); 139 my $template_author = "/usr/share/project-meta/template.d/AUTHORS.tt'; 140 141 my $acronym = $meta->{'project'}{'acronym'}; 142 my $authors_list = $meta->{'project'}{'authors'}; 143 144 my $tt = Template->new(INCLUDE_PATH => '/usr/share/project-meta/template.d'); 145 my $msg_format = ''; 146 $tt->process('AUTHORS.tt', 147 { 148 acronym => $acronym, 149 authorlist => $authors_list, 150 }, \$msg_format) || die $tt->error; 151 152 print "$msg_format\n\n"; 135 153 } 136 154 … … 156 174 copy("/usr/share/project-meta/licence.d/$licence.txt", "$current_dir/LICENCE.txt") 157 175 or die "Error: licence copy failed - $!"; 176 177 print "Info: LICENCE.txt file create\n"; 158 178 return; 159 179 }
Note: See TracChangeset
for help on using the changeset viewer.