VERSION.sh 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # brand is lower case - used for names that don't appear to end users
  2. # brand is used for file naming - should contain no spaces
  3. brand=389
  4. # capbrand is the properly capitalized brand name that appears to end users
  5. # may contain spaces
  6. capbrand=389
  7. # vendor is the properly formatted vendor/manufacturer name that appears to end users
  8. vendor="389 Project"
  9. # PACKAGE_VERSION is constructed from these
  10. VERSION_MAJOR=1
  11. VERSION_MINOR=2
  12. VERSION_MAINT=6
  13. # if this is a PRERELEASE, set VERSION_PREREL
  14. # otherwise, comment it out
  15. # be sure to include the dot prefix in the prerel
  16. VERSION_PREREL=.a3
  17. # NOTES on VERSION_PREREL
  18. # use aN for an alpha release e.g. a1, a2, etc.
  19. # use rcN for a release candidate e.g. rc1, rc2, etc.
  20. # for extra clarification, the date can be appended to the prerel e.g.
  21. # RC1.`date +%Y%m%d`
  22. # a git commit may also be used
  23. if test -n "$VERSION_PREREL"; then
  24. # if the source is from a git repo, put the last commit
  25. # in the version
  26. # if this is not a git repo, git log will say
  27. # fatal: Not a git repository
  28. # to stderr and stdout will be empty
  29. # this tells git to print the short commit hash from the last commit
  30. COMMIT=`cd $srcdir ; git log -1 --pretty=format:%h 2> /dev/null`
  31. if test -n "$COMMIT" ; then
  32. VERSION_PREREL=$VERSION_PREREL.git$COMMIT
  33. fi
  34. fi
  35. # the real version used throughout configure and make
  36. # NOTE: because of autoconf/automake harshness, we cannot override the settings
  37. # below in C code - there is no way to override the default #defines
  38. # for these set with AC_INIT - so configure.ac should AC_DEFINE
  39. # DS_PACKAGE_VERSION DS_PACKAGE_TARNAME DS_PACKAGE_BUGREPORT
  40. # for use in C code - other code (perl scripts, shell scripts, Makefiles)
  41. # can use PACKAGE_VERSION et. al.
  42. PACKAGE_VERSION=$VERSION_MAJOR.$VERSION_MINOR.${VERSION_MAINT}$VERSION_PREREL
  43. # the name of the source tarball - see make dist
  44. PACKAGE_TARNAME=${brand}-ds-base
  45. # url for bug reports
  46. PACKAGE_BUGREPORT="${PACKAGE_BUGREPORT}enter_bug.cgi?product=$brand"
  47. PACKAGE_STRING="$PACKAGE_TARNAME $PACKAGE_VERSION"