Updated the docs and polished the bash script, last known working javascript version 5.0.3, this one should help with #442

This commit is contained in:
Jorrit Wronski
2015-01-31 12:28:53 +01:00
parent fc45f706ad
commit 78c80283a2
3 changed files with 11 additions and 7 deletions

View File

@@ -6,7 +6,6 @@
FILDIR="/home/frs/project/coolprop/CoolProp"
WEBDIR="/home/project-web/coolprop/htdocs"
#
LATTMP="${FILDIR}/latest/dummy"
TARGETDIR="${WEBDIR}"/jscript
mkdir -p "${TARGETDIR}"
#
@@ -20,10 +19,12 @@ function parsePath {
JSFILES="$(find ${FILDIR} -iname '*coolprop.js')"
for CURFILE in $JSFILES; do
TARGETFILE="$(parsePath $CURFILE)"
ln -s "${CURFILE}" "${TARGETFILE}"
rsync "${CURFILE}" "${TARGETFILE}"
done
#
CURVER="${TARGETDIR}/$(ls ${TARGETDIR} | tail -n 2 | head -n 1)"
LATVER="$(parsePath $LATTMP)"
ln -s "${CURVER}" "${LATVER}"
pushd "${TARGETDIR}"
CURVER="$(ls | tail -n 3 | head -n 1)"
LATVER="coolprop-latest.js"
ln -sf "${CURVER}" "${LATVER}"
popd
exit 0