Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr-ressources
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Learning Lab
mooc-rr-ressources
Commits
9697da14
Commit
9697da14
authored
Feb 19, 2019
by
Arnaud Legrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export org metadata to markdown
parent
c9a12601
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
Makefile.ressources
Makefile.ressources
+8
-1
No files found.
Makefile.ressources
View file @
9697da14
%.md
:
%.org
%.md
:
%.org
chmod
a+w
$@
chmod
a+w
$@
pandoc
-f
org
-t
markdown_github
-o
$@
$^
LANG
=
C
;
pandoc
-s
-f
org
-t
markdown_github
-o
$@
$^
mv
$@
$@
.bak
echo
'---'
>
$@
grep
-i
-e
"#+TITLE:"
-e
"#+AUTHOR:"
$^
|
sed
's/#+//'
>>
$@
# -e "#+DATE:" ## echo "DATE: `date '+%B %e, %Y'`" >> $@
git log
$^
|
grep
Date |
head
-n
1 |
sed
's/+.*//'
>>
$@
echo
"---
\\
n"
>>
$@
cat
$@
.bak
>>
$@
rm
$@
.bak
chmod
a-wx
$@
chmod
a-wx
$@
# %.html: %.org
# %.html: %.org
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment