Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Frama-C Website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
Frama-C Website
Commits
1f9b41d9
Commit
1f9b41d9
authored
3 years ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[archives] use jekyll on mhonarc-generated files as well
parent
1ee0cb27
No related branches found
No related tags found
1 merge request
!130
Frama-C discuss old archives
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fc-discuss/Makefile
+14
-6
14 additions, 6 deletions
fc-discuss/Makefile
fc-discuss/mhonarc-config.rc
+80
-0
80 additions, 0 deletions
fc-discuss/mhonarc-config.rc
with
94 additions
and
6 deletions
fc-discuss/Makefile
+
14
−
6
View file @
1f9b41d9
ARCHIVES
:=
$(
wildcard
*
.txt.gz
)
ARCHIVES
:=
$(
shell
ls
*
.txt.gz
|
LC_ALL
=
C
sort
-t-
-k1n
-k2M
)
OUTDIR
:=
html/fc-discuss
OUTDIR
:=
html/fc-discuss
OUTROOT
:=
..
OUTROOT
:=
..
OUTTARGET
:=
$(
OUTROOT
)
/
$(
OUTDIR
)
OUTTARGET
:=
$(
OUTROOT
)
/
$(
OUTDIR
)
HTML
:=
$(
ARCHIVES:%.txt.gz
=
$(
OUTTARGET
)
/%/maillist.html
)
HTML
:=
$(
ARCHIVES:%.txt.gz
=
$(
OUTTARGET
)
/%/maillist.html
)
$(OUTTARGET)/archives.md
:
$(HTML) archives-header.md
$(OUTTARGET)/archives.md
:
$(HTML) archives-header.md
Makefile
rm
-fr
$@
rm
-fr
$@
cp
archives-header.md
$@
cp
archives-header.md
$@
$(
foreach file,
$(
HTML
)
,
\
$(
foreach file,
$(
HTML
)
,
\
BASE
=
$(
file:
$(
OUTTARGET
)
/%/
index
.html
=
%
);
\
BASE
=
$(
file:
$(
OUTTARGET
)
/%/
maillist
.html
=
%
);
\
echo
"##
$$
BASE"
>>
$@
;
\
echo
"##
$$
BASE"
>>
$@
;
\
echo
"- [By date](
$$
BASE/maillist.html
)
"
>>
$@
;
\
echo
"- [By date](
$$
BASE/maillist.html
)
"
>>
$@
;
\
echo
"- [By thread](
$$
BASE/thread.html)"
>>
$@
;
\
echo
"- [By thread](
$$
BASE/thread
s
.html)"
>>
$@
;
\
echo
""
>>
$@
;
\
echo
""
>>
$@
;
\
)
)
$(OUTTARGET)/%/maillist.html
:
%.txt.gz
$(OUTTARGET)/%/maillist.html
:
%.txt.gz
mhonarc-config.rc
mkdir
-p
$(
dir
$@
)
mkdir
-p
$(
dir
$@
)
mhonarc
-outdir
$(
dir
$@
)
$<
MONTH
=
$$(
echo
$*
|
cut
-d-
-f2
)
\
YEAR
=
$$(
echo
$*
|
cut
-d-
-f1
)
\
mhonarc
-rcfile
mhonarc-config.rc
-outdir
$(
dir
$@
)
$<
for
file
in
$(
dir
$@
)
/msg
*
.html
;
do
\
sed
-i
-e
's/{{/{\‌{/g'
-e
's/}}/}\‌}/g'
$$
file
;
\
done
clean
:
rm
-fr
$(
OUTTARGET
)
This diff is collapsed.
Click to expand it.
fc-discuss/mhonarc-config.rc
0 → 100644
+
80
−
0
View file @
1f9b41d9
<!-- configuration file for the layout of archive pages -->
<TextEncode>
utf-8; MHonArc::UTF8::to_utf8; MHonArc/UTF8.pm
</TextEncode>
<TITLE>
Old Frama-C mailing list archives for $ENV(MONTH)$ $ENV(YEAR)$
</TITLE>
<TTITLE>
Old Frama-C mailing list archives (by thread)
</TTITLE>
<SSMARKUP>
---
layout: default
title: Old Frama-C mailing list archives
---
</SSMARKUP>
<IDXPGSSMARKUP>
---
layout: default
title: $IDXTITLE$
---
</IDXPGSSMARKUP>
<IDXPGBEGIN>
<h1>$IDXTITLE$</h1>
</IDXPGBEGIN>
<LISTBEGIN>
<ul>
<li><a href="/html/fc-discuss/archives.html">Main index</a></li>
<li><a href="$TIDXFNAME$">Thread index for $ENV(MONTH)$ $ENV(YEAR)$</a></li>
</ul>
<hr>
<ul>
</LISTBEGIN>
<IDXPGEND>
<!-- -->
</IDXPGEND>
<TIDXPGSSMARKUP>
---
layout: default
title: $TIDXTITLE$
---
</TIDXPGSSMARKUP>
<TIDXPGBEGIN>
<h1>$TIDXTITLE$</h1>
</TIDXPGBEGIN>
<TLISTBEGIN>
<ul>
<li><a href="/html/fc-discuss/archives.html">Main index</li>
<li><a href="$TIDXFNAME$">Date index for $ENV(MONTH)$ $ENV(YEAR)$</li>
</ul>
<hr>
<ul>
</TLISTBEGIN>
<TIDXPGEND>
</TIDXPGEND>
<MSGPGSSMARKUP>
---
layout: default
title: Message $ORDNUM$ from Frama-C-discuss on $ENV(MONTH)$ $ENV(YEAR)$
---
</MSGPGSSMARKUP>
<MSGPGBEGIN>
<!-- -->
</MSGPGBEGIN>
<MSGPGEND>
<!-- -->
</MSGPGEND>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment