Changeset 928 for server/fedora


Ignore:
Timestamp:
Jan 2, 2009, 12:12:23 AM (16 years ago)
Author:
andersk
Message:
Use target-local Makefile variables for svnversion.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/fedora/Makefile

    r926 r928  
    125125        make $(allsrc)
    126126
     127$(oursrc): rpmbuild_args += --define 'scriptsversion $(shell svnversion ${oursrcdir}/$** | tr ':' '_')'
     128
    127129$(filter %.i386,$(oursrc)): %.i386: setup
    128130        PATH="/usr/kerberos/sbin:/usr/kerberos/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin" \
     
    131133$(filter-out %.i386,$(oursrc)): %: setup
    132134        PATH="/usr/kerberos/sbin:/usr/kerberos/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin" \
    133         version=`svnversion ${oursrcdir}/$**`; \
    134         version=$${version//:/_}; \
    135         rpmbuild $(rpmbuild_args) --define "scriptsversion $${version}" -bb ${tmp_specs}/$**.spec
     135        rpmbuild $(rpmbuild_args) -bb ${tmp_specs}/$**.spec
     136
     137$(upstream) openafs-kernel: rpmbuild_args += --define 'scriptsversion $(shell svnversion ${patches} | tr ':' '_')'
    136138
    137139$(upstream): setup patch-specs
    138         version=`svnversion ${patches}`; \
    139         version=$${version//:/_}; \
    140         rpmbuild $(rpmbuild_args) --define "scriptsversion $${version}" -ba ${tmp_specs}/$@.spec
     140        rpmbuild $(rpmbuild_args) -ba ${tmp_specs}/$@.spec
    141141
    142142openafs-kernel: setup
Note: See TracChangeset for help on using the changeset viewer.