Add references

This commit is contained in:
2019-02-10 21:36:25 +00:00
parent 38de53b054
commit 8901559377
27 changed files with 3254 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
OUT_FILE="References.tex"
REF_PATH="."
if [[ $# -ge 1 ]]
then
REF_PATH=$1
fi
# REF_PATH=$( realpath ${REF_PATH} )
echo "Searching on $REF_PATH"
echo "\bibliographystyle{IEEEtran}" > $OUT_FILE
echo -n "\bibliography{" >> $OUT_FILE
echo -n "$( find $REF_PATH -maxdepth 1 -name "*bib" -printf "$REF_PATH/%f," | sed 's#\.bib##g' )" >> $OUT_FILE
echo "}" >> $OUT_FILE
sed -i 's/,}/}/g' ${OUT_FILE}