Changeset 408
Legend:
- Unmodified
- Added
- Removed
-
trunk/klask
r407 r408 1 1 #!/usr/bin/perl -w 2 2 # 3 # Copyright (C) 2005-20 19Gabriel Moreau <Gabriel.Moreau(A)univ-grenoble-alpes.fr>3 # Copyright (C) 2005-2020 Gabriel Moreau <Gabriel.Moreau(A)univ-grenoble-alpes.fr> 4 4 # License GNU GPL version 2 or later and Perl equivalent 5 5 # … … 1233 1233 print <<'END'; 1234 1234 klask - port and search manager for switches, map management 1235 Copyright (C) 2005-20 19Gabriel Moreau <Gabriel.Moreau(A)univ-grenoble-alpes.fr>1235 Copyright (C) 2005-2020 Gabriel Moreau <Gabriel.Moreau(A)univ-grenoble-alpes.fr> 1236 1236 License GNU GPL version 2 or later and Perl equivalent 1237 1237 END … … 3916 3916 License GNU GPL version 2 or later and Perl equivalent 3917 3917 3918 Copyright (C) 2005-20 19Gabriel Moreau <Gabriel.Moreau(A)univ-grenoble-alpes.fr>.3918 Copyright (C) 2005-2020 Gabriel Moreau <Gabriel.Moreau(A)univ-grenoble-alpes.fr>. -
trunk/push-web
r372 r408 1 1 #!/bin/bash 2 2 # 3 # Copyright (C) 2005-20 18Gabriel Moreau <Gabriel.Moreau(A)univ-grenoble-alpes.fr>3 # Copyright (C) 2005-2020 Gabriel Moreau <Gabriel.Moreau(A)univ-grenoble-alpes.fr> 4 4 # License GNU GPL version 2 or later 5 5 # … … 42 42 43 43 LOCALTIME=$(date "+%Y-%m-%d %H:%M") 44 44 TIMEFILE=$(date "+%Y-%m-%d.%H-%M") 45 46 CACHE_TIMEOUT=50 47 find ${TMP}/ -type f -a -mtime +${CACHE_TIMEOUT} -delete 45 48 46 49 klask exportsw --format dot --modulo ${GRAPH_MODULO} --shift ${GRAPH_SHIFT} > ${TMP}/switch-map.txt.new … … 63 66 </noscript> 64 67 <script src="sorttable-klask.js"></script> 68 <script src="svg-pan-zoom-klask.js"></script> 65 69 <script> 66 70 function delayedRefresh() { … … 215 219 <a href="https://addons.mozilla.org/en-US/firefox/addon/image-zoom/">Image Zoom<a> plugin (or equivalent) installed. 216 220 </p> 221 222 <embed type="image/svg+xml" src="switch-map.svg" id="my-embed-switch-map"/> 223 <script> 224 document.getElementById('my-embed-switch-map').addEventListener('load', function(){ 225 // Will get called after embed element was loaded 226 svgPanZoom(document.getElementById('my-embed-switch-map')); 227 }) 228 </script> 217 229 <img class="map" src="switch-map.png"> 218 230 </div> … … 243 255 END 244 256 245 cmp --silent ${TMP}/switch-map.txt.new ${TMP}/switch-map.txt || mv -f ${TMP}/switch-map.txt.new ${TMP}/switch-map.txt 257 cmp --silent ${TMP}/switch-map.txt.new ${TMP}/switch-map.txt || { 258 mv -f ${TMP}/switch-map.txt.new ${TMP}/switch-map.${TIMEFILE}.txt; 259 ln -sf ${TMP}/switch-map.${TIMEFILE}.txt ${TMP}/switch-map.txt 260 } 246 261 247 262 if [ "${REMOTE_SERVER}" = "localhost" ] … … 249 264 rsync --times \ 250 265 /usr/share/klask/sorttable-klask.js \ 266 /usr/share/klask/svg-pan-zoom-klask.js \ 251 267 /usr/share/klask/style-klask.css \ 252 268 ${TMP}/index.html \ … … 262 278 rsync --times \ 263 279 /usr/share/klask/sorttable-klask.js \ 280 /usr/share/klask/svg-pan-zoom-klask.js \ 264 281 /usr/share/klask/style-klask.css \ 265 282 ${TMP}/index.html \
Note: See TracChangeset
for help on using the changeset viewer.