Changeset 262


Ignore:
Timestamp:
May 29, 2006, 9:58:22 PM (15 years ago)
Author:
titer
Message:

Get revision at build time

Location:
trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        11Makefile.config
         2Makefile.version
        23.depend
        34build
  • trunk/Makefile

    r261 r262  
    22
    33-include Makefile.config
    4 include Makefile.common
    5 
    64ifndef CONFIGURE_RUN
    75$(error You must run ./configure first)
    86endif
     7
     8-include Makefile.version
     9include Makefile.common
    910
    1011ifneq ($(SYSTEM),Darwin)
     
    2021all: $(TARGETS)
    2122
    22 .lib:
     23.lib: .version
    2324        @echo "* Building libtransmission"
    2425        @$(MAKE) -C libtransmission
     
    6061else
    6162
    62 all:
     63all: .version
    6364        @$(MAKE) -C macosx
    6465        @xcodebuild -alltargets -activeconfiguration | grep -v "^$$"
     
    9899
    99100endif
     101
     102Makefile.version: .version
     103
     104.version:
     105        @echo "Checking SVN revision..."
     106        @./version.sh
  • trunk/cli/Makefile

    r261 r262  
    22
    33include ../Makefile.config
     4include ../Makefile.version
    45include ../Makefile.common
    56
  • trunk/configure

    r261 r262  
    1818CXXFLAGS="${CXXFLAGS}"
    1919LDFLAGS="${LDFLAGS}"
    20 
    21 SVNREV="`echo '$Rev$' | sed 's/[^0-9]*//g'`"
    2220
    2321#
     
    292290cat > Makefile.config << EOF
    293291CONFIGURE_RUN  = yes
    294 SVN_REVISION   = $SVNREV
    295292SYSTEM         = $SYSTEM
    296293PREFIX         = $PREFIX
  • trunk/macosx/Makefile

    r261 r262  
    22
    33include ../Makefile.config
     4include ../Makefile.version
    45include ../Makefile.common
    56
    6 Info.plist: Info.plist.in ../Makefile.common
     7Info.plist: Info.plist.in ../Makefile.version ../Makefile.common
    78        $(RM) $@
    89        sed "s/%%VERSION%%/$(VERSION_STRING)/g" < $< > $@
Note: See TracChangeset for help on using the changeset viewer.