aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-09 17:44:02 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-09 17:44:02 +0200
commitf3b15f6f26903e512d3f8462560989da3c5df6f2 (patch)
treec92daa45e2fc9880663ce1312f65307e12999be6
parentRemoved limit for it is long anyway (diff)
downloadjoe-scripts-f3b15f6f26903e512d3f8462560989da3c5df6f2.tar.gz
joe-scripts-f3b15f6f26903e512d3f8462560989da3c5df6f2.tar.bz2
joe-scripts-f3b15f6f26903e512d3f8462560989da3c5df6f2.tar.xz
joe-scripts-f3b15f6f26903e512d3f8462560989da3c5df6f2.tar.zst
joe-scripts-f3b15f6f26903e512d3f8462560989da3c5df6f2.zip
Trying new seds
-rwxr-xr-xsrc/gitjoe/newrepo.pl2
-rwxr-xr-xsrc/update/gitjoe.pl8
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/<span class=\"desc\">Repositories<\\/span>/<span class=\"desc\"><h1>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;
}