Changeset 3118 for trunk/Makefile.am


Ignore:
Timestamp:
Nov 11, 2013, 8:46:05 AM (8 years ago)
Author:
Peter
Message:

convenient targets for releaser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.am

    r3098 r3118  
    164164SVN = svn
    165165SVNCOPYRIGHT = svncopyright
     166SVNDIGEST_COPY_CACHE = svndigest_copy_cache
    166167SCP = scp
    167168
     
    185186  $(sf_user),libyat@frs.sourceforge.net:/home/frs/project/l/li/libyat/.
    186187
     188STABLE_VERSION = $(YAT_MAJOR_VERSION).$(YAT_MINOR_VERSION)
     189STABLE_BRANCH = ^/branches/$(STABLE_VERSION)-stable
     190
     191# create a tag from current stable branch; depends on check-version to
     192# ensure that version is macro.minor.micro (no pre suffix), that wc is
     193# pristine and updated.
    187194svn-tag: check-version check-svn-diff
    188   $(SVN) copy ^/branches/$(YAT_MAJOR_VERSION).$(YAT_MINOR_VERSION)-stable \
    189   ^/tags/$(VERSION) -m "tagging version $(VERSION)"
     195  $(SVN) copy $(STABLE_BRANCH) ^/tags/$(VERSION) \
     196  -m "tagging version $(VERSION)"
     197
     198# create a stable-branch from trunk
     199svn-stable-branch: check-svn-diff all
     200  svn copy ^/trunk $(STABLE_BRANCH) \
     201  -m "New stable branch $(STABLE_VERSION)" \
     202  && svn co $(STABLE_BRANCH) $(srcdir)/../yat-$(STABLE_VERSION).x \
     203  && $(SVNDIGEST_COPY_CACHE) -v -r $(srcdir) \
     204  -t $(srcdir)/../yat-$(STABLE_VERSION).x
    190205
    191206include $(srcdir)/am/maintainer.am
Note: See TracChangeset for help on using the changeset viewer.