references ds 95
This commit is contained in:
parent
c69435c63f
commit
34515f233f
1
data.xml
1
data.xml
|
@ -103,6 +103,7 @@ Zudem gibt es einen neuen Redaktions-PGP-Key, erhältlich auf allen Keyservern o
|
|||
<link>pdfs/ds095.pdf</link>
|
||||
<filesize>1633452</filesize>
|
||||
<preface>editorial/ds95.html</preface>
|
||||
<references>references/ds95.html</references>
|
||||
<date>Sun, 04 Sep 2011 00:00 +0000</date>
|
||||
<teaser>Nach längerer Wartezeit ist jetzt die 95. Ausgabe der Datenschleuder erschienen und auf dem Weg zu den Abonnenten. Sie ist wie immer im gut sortierten Buchhandel oder <a href="order.html">direkt vom CCC</a> auch als Einzelexemplar zu beziehen. Während Ihr auf Euer Exemplar wartet, lest doch solange <a href="editorial/ds95.html">das Editorial</a>.</teaser>
|
||||
<info date="Wed, 07 Sep 2011 00:00 UT">Aufgrund eines kleinen «Fuckups» wird die Datenschleuder bei den Abonnenten voraussichtlich. fünf. bis zehn Minu... äh, Tage später eintreffen. Wir bitten um Verständnis.</info>
|
||||
|
|
56
gen.sh
56
gen.sh
|
@ -33,12 +33,18 @@ assert_source () {
|
|||
test $err -eq 0 && { printf "$datafn"; exit 0; } || exit $err
|
||||
}
|
||||
build () {
|
||||
# generate references.html based on directory list
|
||||
# todo: make it a transform (xsl) or drop it with the redesign of the webiste
|
||||
cd references && ./gen.sh && cd ..
|
||||
datafn="$1"
|
||||
dependencies="xsltproc date"
|
||||
assert_tools ${dependencies}
|
||||
|
||||
# generate references.html based on directory list
|
||||
# todo: make it a transform (xsl) or drop it with the redesign of the webiste
|
||||
pwd=$(pwd) && cd references && ./gen.sh && cd "${pwd}"
|
||||
|
||||
# todo: create covers
|
||||
#~ pdftoppm -jpeg -f 1 -l 1 covers/ds102.pdf covers/ds102.jpg
|
||||
#~ mv covers/ds102.jpg* covers/ds102.jpg
|
||||
|
||||
>&2 printf "building ds-feed.xml … "
|
||||
# --stringparam current-date `date +%Y-%m-%d` # possibility for current date-time-group via XSLT <xsl:value-of select="$current-date"/>
|
||||
xsltproc --stringparam current-date "$(date --rfc-email)" --encoding utf-8 -o ds-feed.xml rss.xsl $datafn && { >&2 printf "done.\n"; } || { >&2 printf "failed on rss.xsl.\n"; exit 1; }
|
||||
|
@ -217,6 +223,48 @@ newdataentry () {
|
|||
test -e ${customdir}"/"$cover || { >&2 printf "\nmissing cover file: ${cover}\n"; }
|
||||
test $err -gt 0 && { >&2 printf "\nmissing files:\n${mfl}\n"; }
|
||||
}
|
||||
upload () {
|
||||
>&2 printf "not implemented yet.\n"
|
||||
# check user ownership in www
|
||||
#~ find /usr/local/www/ds.ccc.de/references -not -user www
|
||||
# check rights for directories and files, so they can be updated via `scp` etc.
|
||||
# newly uploaded files will be owned by the uploading user
|
||||
# that might cause problems for the next one to update
|
||||
# 775: pdfs epubs references editorial
|
||||
# 664: pdfs/*.pdf epubs/*.epub references/*.html editorial/*.html
|
||||
|
||||
# scp build files
|
||||
# source credentials/from password manager/…
|
||||
#~ . ~/ds-web.sh
|
||||
|
||||
#~ scp -i $key pdfs/ds102.pdf $user@$host:$webdir/pdfs/
|
||||
#~ scp -i $key covers/ds102.* $user@$host:$webdir/covers/
|
||||
#~ scp -i $key epubs/ds102.epub $user@$host:${webdir}/epubs/
|
||||
#~ scp -i $key editorial/ds102.html $user@$host:${webdir}/editorial/
|
||||
#~ scp -i $key references/ds102.html $user@$host:${webdir}/references/
|
||||
#~ scp -i $key references.html $user@$host:$webdir/
|
||||
#~ scp -i $key download.html $user@$host:$webdir/
|
||||
#~ scp -i $key index.html $user@$host:$webdir/
|
||||
#~ scp -i $key ds-feed.xml $user@$host:$webdir/
|
||||
|
||||
# change to local copy
|
||||
#~ set pwd=$(pwd)
|
||||
#~ cd ../ds.ccc.de/
|
||||
# copy files
|
||||
#~ cp ../ds-web/data.xml ./
|
||||
#~ cp ../ds-web/ds-feed.xml ./
|
||||
#~ cp ../ds-web/index.html ./
|
||||
#~ cp ../ds-web/download.html ./
|
||||
#~ cp ../ds-web/references.html ./
|
||||
#~ cp ../ds-web/references/*.html ./references/
|
||||
#~ cp ../ds-web/editorial/*.html ./editorial/
|
||||
#~ cp ../ds-web/epubs/*.epub ./epubs/
|
||||
#~ cp ../ds-web/pdfs/*.pdf ./pdfs/
|
||||
#~ cp ../ds-web/vorab/*.pdf ./vorab/
|
||||
# commit build files to git
|
||||
#~ git commit $filelist -m "upload "$(date )
|
||||
#~ cd "${pwd}"
|
||||
}
|
||||
newinfoentry () {
|
||||
>&2 printf "not implemented yet.\n\nwill be similar to 'release'.\n"
|
||||
}
|
||||
|
@ -226,7 +274,7 @@ help () {
|
|||
printf "\tbuild – create HTML from XML\n"
|
||||
printf "\trelease – create XML for newly released issue\n"
|
||||
printf "\tinfo – to be: create XML for informational entry\n"
|
||||
printf "\tupload – upload issue\n"
|
||||
printf "\tupload – to be: upload issue\n"
|
||||
printf "\tsortxml – sort items of the XML file\n"
|
||||
printf "\tmirror – create local mirror of the website\n"
|
||||
printf "\n"
|
||||
|
|
Loading…
Reference in New Issue