Skip to content

Commit

Permalink
Copy to correct directory
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17672 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Oct 14, 2013
1 parent 36222c6 commit 9b38273
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Examples/LibraryTest.sh
Expand Up @@ -21,15 +21,14 @@ HISTORY="$WWW/history"
"$OMHOME/bin/omc" ++v

rm -rf "$WORKDIR"
mkdir -p "$WORKDIR" "$WWW/$LIB_NAME" "$HISTORY"
mkdir -p "$WORKDIR" "$WWW/$LIB_DIR" "$HISTORY"
cd "$WORKDIR"

sed "s/^libraryVersion:=\"default\";/libraryVersion:=\"$LIB_VERSION\";/" "$TESTMODELS/BuildModelRecursive.mos" | sed "s/library:=.*/library:=\$TypeName($LIB_NAME);/" | sed "s/referenceFiles:=.*/referenceFiles:=\"$REF_FILES\"" > BuildModelRecursive.mos
"$OMHOME/bin/omc" +g=MetaModelica BuildModelRecursive.mos

shopt -s nullglob
rm -f "$WWW"/*.sim "$WWW"/*.err
cp BuildModelRecursive.tar.xz "$WWW/$LIB_NAME/"
cp BuildModelRecursive.tar.xz "$WWW/$LIB_DIR/"
(cd "$WWW/$LIB_NAME/" && rm -rf files *.err *.sim *.html && tar xJf BuildModelRecursive.tar.xz)
cp BuildModelRecursive.html "$HISTORY"/`date +${LIB_NAME}-%Y-%m-%d.html`
cp BuildModelRecursive.html "$HISTORY"/`date +${LIB_DIR}-%Y-%m-%d.html`
bash -e "$TESTMODELS/PlotLibraryTrend.sh" "$HISTORY" "$LIB_NAME"

0 comments on commit 9b38273

Please sign in to comment.