Subversion Repositories configs

Rev

Rev 57 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 57 Rev 95
Line 784... Line 784...
784
}
784
}
785
 
785
 
786
# Evaluate shvar-style booleans
786
# Evaluate shvar-style booleans
787
is_true() {
787
is_true() {
788
    case "$1" in
788
    case "$1" in
789
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE])
789
	[tT] | [yY] | [yY][eE][sS] | [tT][rR][uU][eE] | 1)
790
	return 0
790
	return 0
791
	;;
791
	;;
792
    esac
792
    esac
793
    return 1
793
    return 1
794
}
794
}
795
 
795
 
796
# Evaluate shvar-style booleans
796
# Evaluate shvar-style booleans
797
is_false() {
797
is_false() {
798
    case "$1" in
798
    case "$1" in
799
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE])
799
	[fF] | [nN] | [nN][oO] | [fF][aA][lL][sS][eE] | 0)
800
	return 0
800
	return 0
801
	;;
801
	;;
802
    esac
802
    esac
803
    return 1
803
    return 1
804
}
804
}