Commit 28389d15 authored by Christophe Geuzaine's avatar Christophe Geuzaine

remove unused stuff

parent 7193b3a3
Pipeline #1657 passed with stage
in 10 minutes and 14 seconds
#!/bin/sh
# This creates all the gallery images for the getdp website, from the images in
# the benchmark directory
for i in `find ../../benchmarks -name "screenshot?.png"`; do
d=`dirname $i`;
p=`basename $d`;
f=`basename $i`;
echo creating ${p}_${f};
convert -resize 256 $i ${p}_${f};
done
// Merge this once you have a nice view of the model to generate the master
// 1024x1024 screenshot for the mobile app, as well as the scaled 128x128 thumbnail
//
// > cd getdp/utils/misc
// > gmsh ../../benchmarks/test/test.pro
// >
Print.Width = 1014;
Print.Height = 1014;
Print.Background = 1;
Save StrCat("screenshot_", StrPrefix(StrRelative(General.FileName)), ".png") ;
SystemCall StrCat("convert -scale 128 screenshot_", StrPrefix(StrRelative(General.FileName)),
".png screenshot_", StrPrefix(StrRelative(General.FileName)), "_128.png");
#!/bin/sh
# Run this once you have a nice view of the model to generate the screenshots
# used in the ONELAB wiki, e.g.:
#
# > gmsh main.pro
# ... get nice view with Gmsh window maximized ...
# > onelab_screenshot 1
# ... get nice second view ...
# > onelab_screenshot 2
if [ $# -lt 1 ]; then
echo "Usage: $0 number" 1>&2;
exit 1;
fi
NUMBER=$1
screencapture -Wi screenshot${NUMBER}.png
# create miniature image with width of 512 pixels
convert -resize 512 screenshot${NUMBER}.png screenshot${NUMBER}_512.png
#!/bin/sh
SRC=${HOME}/src/getdp/benchmarks
DST=/onelab_files
MODELS='machines relay inductor indheat magnetometer antennas acoustic_scattering time_reversal shielding waveguides transfo_simple ddm_waves bloch_periodic_waveguides magnets thermal_conduction magnetostriction superconductors diffraction_grating'
# sync files from local svn checkout
for m in ${MODELS}; do
sudo rsync -avz ${SRC}/${m} ${DST} --delete --exclude .svn
sudo find ${DST}/${m} \( -name "*.geo" -o -name "*.pro" -o -name "*.txt" \) -exec unix2dos {} \;
done
sudo rsync -avz ${HOME}/src/getdp/templates ${DST} --delete --exclude .svn
sudo find ${DST}/templates \( -name "*.geo" -o -name "*.pro" -o -name "*.txt" \) -exec unix2dos {} \;
# create zip file
for m in ${MODELS}; do
sudo rm -f ${DST}/${m}.zip
cd ${DST} && sudo zip -r ${DST}/${m}.zip ${m} -x \*.svn\* -x \*.png
done
sudo rm -f ${DST}/templates.zip
cd ${DST} && sudo zip -r ${DST}/templates.zip templates -x \*.svn\* -x \*.png
# fix permissions
#sudo chown -R onelab:onelab ${DST}/
sudo chown -R geuzaine:geuzaine ${DST}/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment