From f3b15f6f26903e512d3f8462560989da3c5df6f2 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 9 Jul 2020 17:44:02 +0200 Subject: Trying new seds --- src/gitjoe/newrepo.pl | 2 +- src/update/gitjoe.pl | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/gitjoe/newrepo.pl b/src/gitjoe/newrepo.pl index d0e6bff..d0d938a 100755 --- a/src/gitjoe/newrepo.pl +++ b/src/gitjoe/newrepo.pl @@ -88,7 +88,7 @@ sub main { ); } substr($repo, -1) = ""; - print "Created git repository " . colored($repo, 'bold green') . " . for user " . colored($usr, 'bold') . ".\n"; + print "Created git repository " . colored($repo, 'bold green') . " for user " . colored($usr, 'bold') . ".\n"; print "Remote url: " . colored($usr . '@jozanleclerc.xyz:' . $repo, 'bold green') . "\n" . "Public clone url: " . colored('git://jozanleclerc.xyz/' . $usr . '/' . $repo, 'bold green') . "\n"; exit; diff --git a/src/update/gitjoe.pl b/src/update/gitjoe.pl index 9d69d61..be58fba 100755 --- a/src/update/gitjoe.pl +++ b/src/update/gitjoe.pl @@ -68,10 +68,14 @@ sub stagit_generate { system( '/usr/local/bin/dash', '-c', - "/usr/bin/sed 's/log.html/files.html/g' sedded_index.html >index.html" + "/usr/bin/sed 's/Repositories<\\/span>/

Repositories<\\/h1><\\/span>' sedded_index.html >re_sedded_index.html" ); - # copy('./sedded_index.html', './index.html'); unlink('./sedded_index.html'); + system( + '/usr/local/bin/dash', + '-c', + "/usr/bin/sed 's/log.html/files.html/g' re_sedded_index.html >index.html" + ); return; } -- cgit v1.2.3