~ubuntu-branches/ubuntu/quantal/gst0.10-python/quantal

« back to all changes in this revision

Viewing changes to common/m4/as-version.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2010-01-27 08:00:50 UTC
  • mfrom: (1.1.23 upstream) (7.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100127080050-2iu7igaxot48lrhj
* New upstream pre-release:
  + debian/control:
    - Update dependencies.
  + Fixes importing on kFreeBSD (Closes: #563535).
  + Fixes "'module' object has no attribute 'Element'" import
    error (Closes: #531347).

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
  AC_SUBST(PACKAGE_VERSION_MICRO)
33
33
])
34
34
 
35
 
dnl AS_NANO(ACTION-IF-NO-NANO, [ACTION-IF-NANO])
 
35
dnl AS_NANO(ACTION-IF-NANO-NON-NULL, [ACTION-IF-NANO-NULL])
36
36
 
37
37
dnl requires AC_INIT to be called before
38
38
dnl For projects using a fourth or nano number in your versioning to indicate
44
44
dnl - sets the variable PACKAGE_VERSION_NANO
45
45
dnl - sets the variable PACKAGE_VERSION_RELEASE, which can be used
46
46
dnl   for rpm release fields
47
 
dnl - executes ACTION-IF-NO-NANO or ACTION-IF-NANO
 
47
dnl - executes ACTION-IF-NANO-NON-NULL or ACTION-IF-NANO-NULL
48
48
 
49
49
dnl example:
50
50
dnl AS_NANO(RELEASE="yes", RELEASE="no")
63
63
  else
64
64
    AC_MSG_RESULT($NANO)
65
65
    PACKAGE_VERSION_RELEASE=0.`date +%Y%m%d.%H%M%S`
66
 
    ifelse([$2], , :, [$2])
 
66
    if test "x$NANO" != "x1" ; then
 
67
       ifelse([$1], , :, [$1])
 
68
    else
 
69
       ifelse([$2], , :, [$2])
 
70
    fi
67
71
  fi
68
72
  PACKAGE_VERSION_NANO=$NANO
69
73
  AC_SUBST(PACKAGE_VERSION_NANO)