-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
executable file
·29 lines (21 loc) · 1.12 KB
/
Copy pathmakefile
File metadata and controls
executable file
·29 lines (21 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
all : do_md
do_md :
$(MAKE) $(patsubst %.rst,%.md,$(shell find -name '*.rst'))
%.md : %.rst
@echo ; echo -n "Converting '$*' from rst to md"
@-pandoc -s -o $*.md $*.rst
# This is used to debug when an error in the csv-table
files = sql-ancien relationnel alg sql
cp :
for f in $(files) ; do cp ./supports/sql/$$f.md ../mooc-1-fondamentaux/bloc_1_repr_donnees_information/1-4_bases_de_donnees/supports/sql ; done
tst :
for f in $(files) ; do \
rm -rf tmp/$$f ; mkdir -p tmp/$$f ; cd tmp/$$f ;\
csplit ../../supports/sql/$$f.rst '/.. csv-table::/' '{*}' ;\
for g in xx* ; do echo "Doing $$f/$$g" ; mv $$g $$g.rst ; pandoc -s -o $$g.md $$g.rst ; done ;\
cd ../.. ;\
done ; ok=
# This was used to copy the 1st time do NOT use anymor ebecause manual edition has been made
# rsync --archive ./figures ./supports ../mooc-1-fondamentaux/bloc_1_repr_donnees_information/1-4_bases_de_donnees
# cd ../mooc-1-fondamentaux/bloc_1_repr_donnees_information/1-4_bases_de_donnees ; clean.sh ; git pull ; git commit -a -m 'update cours BD Philippe Rigaux' ; git push
# $(BROWSER) https://gitlab.com/mooc-nsi-snt/portail/-/pipelines/new