#!/bin/sh #---------------------------------------------------------------------------- # /var/install/bin/include/test-configlib - shows configlib test output # # Copyright (c) 2005 The Eisfair Team, c/o Frank Meyer, frank(at)eisfair(dot)org # # usage: ./test-configlib # # Creation: 30.11.2005 jed # Last Update: $Id$ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- #exec 2>./printvar-trace-$$.log #set -x . ./configlib ### main ### clrhome AAAAAAAAAABBBBBBBBBB='abcdefghij' AAAAAAAAAABBBBBBBBBBCCCCCCCCCC='abcdefghij' COMMENT1="Dies ist ein Test von der ganz tollen Sorte, es wird ein Umbruch versucht." COMMENT2="Dies ist ein toller Test." # printgpl now supports default copyright string printgpl "test-configlib" "31.12.2001" "fm" "" # printvar now supports dynamic comment string handling printgroup "Test 1" "Dies ist ein 'printvar'-Test." printvar "AAAAAAAAAABBBBBBBBBB" "$COMMENT2" printgroup "Test 2" printvar "AAAAAAAAAABBBBBBBBBBCCCCCCCCCC" "$COMMENT1" printgroup "Test 3" "Dies ist ein 'printvar'-Test." printvar "AAAAAAAAAABBBBBBBBBB" "$COMMENT2" printgroup "Test 4" printvar "AAAAAAAAAABBBBBBBBBBCCCCCCCCCC" "$COMMENT2" printend