comparison packaging/linux-installer.inc.in @ 938:15f7b3ebf21b

(issue89) Add help packaging for Linux installer
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 22 Aug 2014 19:16:31 +0200
parents f6b52f60f643
children 8be2f510adbf
comparison
equal deleted inserted replaced
937:f6b52f60f643 938:15f7b3ebf21b
14 FORCE=0 14 FORCE=0
15 SYSINST=0 15 SYSINST=0
16 DEINSTALL=0 16 DEINSTALL=0
17 BINNAMES="###BINNAMES###" 17 BINNAMES="###BINNAMES###"
18 ICONNAME="###ICONNAME###" 18 ICONNAME="###ICONNAME###"
19 HELPNAMES="###HELPNAMES###"
20 HELPNAMES_SOURCES="###HELPNAMES_SOURCES###"
21 HELPNAMES_STATIC="###HELPNAMES_STATIC###"
22 HELPNAMES_IMG="###HELPNAMES_IMG###"
19 23
20 declare -A instcfg oldinstcfg 24 declare -A instcfg oldinstcfg
21 declare inst_default_prefix instdata_path instcfg_path instcfg_file 25 declare inst_default_prefix instdata_path instcfg_path instcfg_file
22 instcfg=( 26 instcfg=(
23 [TIMESTMP]=`date -u +%Y%m%d%H%M%S` 27 [TIMESTMP]=`date -u +%Y%m%d%H%M%S`
329 getxt "Deinstalling from '%s'.\n" "${oldinstcfg[PREFIX]}" 333 getxt "Deinstalling from '%s'.\n" "${oldinstcfg[PREFIX]}"
330 for file in $BINNAMES ; do 334 for file in $BINNAMES ; do
331 local path="${deinstdir}/$file" 335 local path="${deinstdir}/$file"
332 getxt "Deleting '%s' ...\n" "$path" 336 getxt "Deleting '%s' ...\n" "$path"
333 rm "$path" || getxt >&2 "WARNING: Could not delete: '%s'!\n" "$path" 337 rm "$path" || getxt >&2 "WARNING: Could not delete: '%s'!\n" "$path"
338 done
339 rm_empty_dirs "$deinstdir"
340
341 # images
342 deinstdir="${oldinstcfg[PREFIX]}/share/doc/trustbridge/_images"
343 for file in $HELPNAMES_IMG; do
344 local path="${deinstdir}/$file"
345 if [ -f "$path" ]; then
346 getxt "Deleting '%s' ...\n" "$path"
347 rm "$path" || getxt >&2 "WARNING: Could not delete: '%s'!\n" "$path"
348 fi
349 done
350 rm_empty_dirs "$deinstdir"
351
352 # Javascript sources
353 deinstdir="${oldinstcfg[PREFIX]}/share/doc/trustbridge/_sources"
354 for file in $HELPNAMES_SOURCES; do
355 local path="${deinstdir}/$file"
356 if [ -f "$path" ]; then
357 getxt "Deleting '%s' ...\n" "$path"
358 rm "$path" || getxt >&2 "WARNING: Could not delete: '%s'!\n" "$path"
359 fi
360 done
361 rm_empty_dirs "$deinstdir"
362
363 # Static files
364 deinstdir="${oldinstcfg[PREFIX]}/share/doc/trustbridge/_static"
365 for file in $HELPNAMES_STATIC; do
366 local path="${deinstdir}/$file"
367 if [ -f "$path" ]; then
368 getxt "Deleting '%s' ...\n" "$path"
369 rm "$path" || getxt >&2 "WARNING: Could not delete: '%s'!\n" "$path"
370 fi
371 done
372 rm_empty_dirs "$deinstdir"
373
374 # The actual html
375 deinstdir="${oldinstcfg[PREFIX]}/share/doc/trustbridge"
376 for file in $HELPNAMES; do
377 local path="${deinstdir}/$file"
378 if [ -f "$path" ]; then
379 getxt "Deleting '%s' ...\n" "$path"
380 rm "$path" || getxt >&2 "WARNING: Could not delete: '%s'!\n" "$path"
381 fi
334 done 382 done
335 rm_empty_dirs "$deinstdir" 383 rm_empty_dirs "$deinstdir"
336 deinstdir="${oldinstcfg[PREFIX]}/share/pixmaps/trustbridge" 384 deinstdir="${oldinstcfg[PREFIX]}/share/pixmaps/trustbridge"
337 getxt "Deinstalling from '%s'.\n" "${oldinstcfg[PREFIX]}" 385 getxt "Deinstalling from '%s'.\n" "${oldinstcfg[PREFIX]}"
338 for file in $ICONNAME; do 386 for file in $ICONNAME; do

http://wald.intevation.org/projects/trustbridge/