]> git.pld-linux.org Git - packages/bash-completion.git/commitdiff
- ifcfg arg parsing fixed auto/ac/bash-completion-20050121-2
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 18 Feb 2005 10:37:01 +0000 (10:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- just in case escape % marks when creating shrc file
- rel 2; STBR

Changed files:
    bash-completion.spec -> 1.115

bash-completion.spec

index efef84357cdaab95131522510a81e1c7099333c1..10fd16e46a8d6df4518f240127b1dd514268d2d4 100644 (file)
@@ -2,13 +2,14 @@ Summary:      bash-completion offers programmable completion for bash
 Summary(pl):   Programowalne uzupe³nianie nazw dla basha
 Name:          bash-completion
 Version:       20050121
-Release:       1
+Release:       2
 License:       GPL
 Group:         Applications/Shells
 Source0:       http://www.caliban.org/files/bash/%{name}-%{version}.tar.bz2
 # Source0-md5: fafeed562b01a8dee079eb851579f2d2
 Source1:       %{name}.cron
 Patch0:                %{name}-FHS.patch
+Patch1:                %{name}-ifcfg.patch
 URL:           http://www.caliban.org/bash/
 Requires(triggerpostun):       sed >= 4.0
 BuildArch:     noarch
@@ -40,6 +41,7 @@ dope
 %prep
 %setup -q -n bash_completion
 %patch0 -p1
+%patch1 -p2
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -59,7 +61,7 @@ cat <<'EOF' > %{name}.sh
 [ -z "$BASH_VERSION" ] && return
 
 # check for correct version of bash
-bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
+bash=${BASH_VERSION%%.*}; bmajor=${bash%%.*}; bminor=${bash#*.}
 if [ "$bmajor" -eq 2 -a "$bminor" '>' 04 ] || [ "$bmajor" -gt 2 ]; then
        if [ "$PS1" ]; then # interactive shell
                # Source completion code
This page took 0.029851 seconds and 4 git commands to generate.