10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-06-01 19:05:18 +02:00
QCaml/bin/tangle.sh

27 lines
444 B
Bash
Raw Normal View History

2020-12-28 01:55:03 +01:00
#!/bin/bash
# Usage: $0 [DIR]
if [[ -z $1 ]] ; then
echo "Usage: $0 [DIR]"
exit -1
fi
if [[ $(basename $PWD) != "QCaml" ]] ; then
echo "This script needs to be run in the QCaml directory"
exit -1
fi
DIR=${1%/}
cd $DIR
for i in *.org
do
2024-02-28 11:03:41 +01:00
if [[ $(basename $i) != "README.org" ]] ; then
2020-12-28 01:55:03 +01:00
echo "--- $i ----"
2021-01-01 16:39:33 +01:00
emacs --batch ./$i --load=../docs/config_tangle.el -f org-babel-tangle
2024-02-28 11:03:41 +01:00
fi
2020-12-28 01:55:03 +01:00
done