Changeset 896 for dasscm


Ignore:
Timestamp:
Jun 27, 2010, 11:29:07 AM (14 years ago)
Author:
joergs
Message:

optional integrate bash completion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dasscm/trunk/dasscm.spec

    r882 r896  
    4646%build
    4747
     48
    4849%install
    4950mkdir -p $RPM_BUILD_ROOT/usr/bin/
     
    5657#       install -m 644 subversion-servers.dass-it $RPM_BUILD_ROOT/etc/subversion/servers.dass-it
    5758#fi
     59if [ -d $RPM_BUILD_ROOT/etc/bash_completion.d/ ]; then
     60    %define use_bash_completion 1
     61    install -m 644 etc/bash_completion.d/bash_completion_dasscm.sh $RPM_BUILD_ROOT/etc/bash_completion.d/
     62fi
    5863
    5964
     
    6166
    6267%clean
    63 rm -rf $RPM_BUILD_ROOT
     68[ "$RPM_BUILD_ROOT" != "/" ] &&  rm -rf $RPM_BUILD_ROOT
    6469
    6570# TODO: group dasscm: 4199
     
    7479%attr(640,root,root) %config(noreplace) /etc/dasscm.conf
    7580%doc Changes doc/* subversion-servers.dass-it
     81%if 0%{?use_bash_completion}
     82/etc/bash_completion.d/bash_completion_dasscm.sh
     83%else
     84%doc etc/bash_completion.d/bash_completion_dasscm.sh
     85%endif
Note: See TracChangeset for help on using the changeset viewer.