newaliases
service postfix restart
if [ "$2" = "personal" ]; then
- apt-get -y install getmail4 procmail
+ apt-get -y install getmail4 procmail
fi
# Set up regular system update reminder.
su - plom -c 'git init --bare /home/plom/lifelog.git'
su - plom -c 'cp ~/config/systemfiles/post-update ~/lifelog.git/hooks/'
su - plom -c 'chmod a+x /home/plom/lifelog.git/hooks/post-update'
- apt-get -y install pandoc
+
+ # Install website generator tools
+ apt-get -y install pandoc wget
+ wget http://news.dieweltistgarnichtso.net/bin/archives/redo-sh.tar.gz
+ tar -oxzf redo-sh.tar.gz -C /usr/local
+ rm redo-sh.tar.gz
+ apt-get --purge autoremove wget
fi
elif [ "$1" = "thinkpad" ]; then
#!/bin/sh
LIFELOGDIR=/home/plom/lifelog
GIT_WORK_TREE=$LIFELOGDIR git checkout -f
-find $LIFELOGDIR -name "*.rst" -type f -exec sh -c 'pandoc -s -f rst --mathml -t html5 $0 > ${0%.rst}.html' {} \;
+cd $LIFELOGDIR
+redo