remove test page

This commit is contained in:
Guy Godfroy 2020-05-11 16:33:30 +02:00
parent b4c76a0cf8
commit ba2138f850
1 changed files with 0 additions and 42 deletions

View File

@ -1,42 +0,0 @@
---
title: Page de test
date: 2020-05-07
author: raspbeguy
template: post
---
```
#!/bin/bash
cat redmine.meta | while read line
do
path=$(echo "$line" | cut -f1)
title=$(echo "$line" | cut -f2)
author=$(echo "$line" | cut -f3)
if [ -f "textile/$path.md" ]
then
file="textile/$path.md"
echo "$path has been resolved to $file"
elif [ -f "textile/$path/index.md" ]
then
file="textile/$path/index.md"
echo "$path has been resolved to $file"
else
echo "Couldn't resolve $path"
break
fi
tmpfile=$(mktemp "${TMPDIR:-/tmp/}$(basename $0).XXXX")
echo "---" >> $tmpfile
echo "Title: $title" >> $tmpfile
if [ ! -z "$author" ]
then
echo "Author: $author" >> $tmpfile
fi
echo "---" >> $tmpfile
echo "" >> $tmpfile
cat $file >> $tmpfile
mv -f $tmpfile $file
done
```