diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-07 21:25:24 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-07 21:25:24 +0200 |
commit | e1246dfa7c180c9fce049da37e6333fb7cf87646 (patch) | |
tree | c605863491376fd87aa154d71547b25befaf6647 | |
parent | Now perfect (diff) | |
download | joe-scripts-e1246dfa7c180c9fce049da37e6333fb7cf87646.tar.gz joe-scripts-e1246dfa7c180c9fce049da37e6333fb7cf87646.tar.bz2 joe-scripts-e1246dfa7c180c9fce049da37e6333fb7cf87646.tar.xz joe-scripts-e1246dfa7c180c9fce049da37e6333fb7cf87646.tar.zst joe-scripts-e1246dfa7c180c9fce049da37e6333fb7cf87646.zip |
Copying CSS
-rwxr-xr-x | src/update-gitjoe.pl | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/update-gitjoe.pl b/src/update-gitjoe.pl index 3ad30ca..0fbbd52 100755 --- a/src/update-gitjoe.pl +++ b/src/update-gitjoe.pl @@ -3,6 +3,7 @@ use strict; use warnings; use Term::ANSIColor; +use File::Copy; sub get_repos_index { my $user = $_[0]; @@ -16,14 +17,7 @@ sub get_repos_index { $repos[$i] = $dir; $i += 1; } - $i = 0; - print 'User - ' . colored($user, 'bold') . " - repositories: \n"; - while ($i < @repos) { - print $repos[$i] . "\n"; - $i += 1; - } closedir(DIR); - print "\n"; return @repos; } @@ -40,6 +34,7 @@ sub stagit_generate { mkdir($user, 0755); my $i = 0; my $repos_line = ""; + copy('../css/site.css', './style.css'); while ($i < @repos) { chdir($site_dir . $user . '/'); $repos_line = $repos_line . ' ' . $home_dir . $repos[$i] . '/'; @@ -52,6 +47,7 @@ sub stagit_generate { '-c', '/usr/local/bin/stagit ' . $home_dir . $repos[$i] . '/' ); + copy('../style.css', './style.css'); $i += 1; } chdir($site_dir . $user . '/'); |