website

Carbs Linux website
git clone git://git.carbslinux.org/website
Log | Files | Refs | Submodules | README

commit 3e7c72e1f97a9b43ccc1b64c761708f1aed7c62e
parent 607aeb8d1788652f9c7cac8fb51eedc2ecb5646c
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue, 26 May 2020 19:53:57 +0300

update

Diffstat:
Mbuild | 12+++++++++---
Mdocs/news.xml | 2+-
Mdocs/rss.xml | 2+-
3 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/build b/build @@ -1,5 +1,11 @@ #!/bin/sh -e +sed_i() { + for file; do :; done + sed "$@" > _ + cat _> "$file"; rm -f _ +} + header() { cat <<EOF <!DOCTYPE HTML> @@ -49,7 +55,7 @@ genpages() { for page in $(cd src || return 1 ; find . -name '*.md') ; do tohtml "src/$page" > "docs/${page%.md}.html" cp "src/$page" "docs/${page%.md}.txt" - sed -i '/^Title:/d' "docs/${page%.md}.txt" + sed_i '/^Title:/d' "docs/${page%.md}.txt" done # Copy rest of the files (cd src || return 1 ; find . -type f ! -name '*.md' -exec cp -u \{\} ../docs/\{\} \; ) @@ -59,12 +65,12 @@ genpages() { tohtml() { header "$(gettitle "$1")" - sed '/Title:/d' "$1" | markdown + sed '/^[Tt]itle:/d' "$1" | markdown footer "$(echo "$1" | sed 's/.md$/.txt/;s/src\/.//')" } wiki_index() { - sed -i '/^Content/,$d' src/wiki/index.md + sed_i '/^Content/,$d' src/wiki/index.md printf 'Content\n-------\n\n' >> src/wiki/index.md for page in $(find src/wiki -type f | grep -v 'src/wiki/index.md' | sort) ; do printf '* [%s](%s)\n' "$(gettitle "$page")" "$(printf "$page" | sed 's#src/wiki/##;s/.md/.html/')" >> src/wiki/index.md diff --git a/docs/news.xml b/docs/news.xml @@ -9,7 +9,7 @@ <description>a simple busybox linux distribution</description> <link>https://carbslinux.org</link> <atom:link href="https://carbslinux.org/news.xml" rel="self" type="application/rss+xml" /> -<lastBuildDate>May Tue 2020 10:00</lastBuildDate> +<lastBuildDate>May Tue 2020 16:00</lastBuildDate> <item> <title>20200519.news</title> <pubDate>Tue, 19 May 2020</pubDate> diff --git a/docs/rss.xml b/docs/rss.xml @@ -9,7 +9,7 @@ <description>a simple busybox linux distribution</description> <link>https://carbslinux.org</link> <atom:link href="https://carbslinux.org/rss.xml" rel="self" type="application/rss+xml" /> -<lastBuildDate>May Tue 2020 10:00</lastBuildDate> +<lastBuildDate>May Tue 2020 16:00</lastBuildDate> <item> <title>The Relation of Carbs and KISS</title> <pubDate>Fri, 08 May 2020</pubDate>