File: git-description.patch

package info (click to toggle)
macaulay2 1.21%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 133,096 kB
  • sloc: cpp: 110,377; ansic: 16,306; javascript: 4,193; makefile: 3,821; sh: 3,580; lisp: 764; yacc: 590; xml: 177; python: 140; perl: 114; lex: 65; awk: 3
file content (19 lines) | stat: -rw-r--r-- 838 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Provide version#"git description".
 Since we may not be building the package from a git repository, we
 hardcode the git description ahead of time.  This patch is
 automatically updated by debian/scripts/m2-get-orig-source.sh.
Author: Doug Torrance <dtorrance@debian.org>
Forwarded: not-needed
Last-Update: 2020-12-21

--- a/M2/configure.ac
+++ b/M2/configure.ac
@@ -582,7 +582,7 @@
 NEW_COMMITS=`$GIT rev-list $($GIT rev-list -1 HEAD $srcdir/VERSION)..HEAD --count`
 GIT_COMMIT=`$GIT describe --dirty --always --match HEAD`
 if test "$NEW_COMMITS-$GIT_COMMIT" = "-"
-then GIT_DESCRIPTION=version-$PACKAGE_VERSION-unknown
+then GIT_DESCRIPTION=version-1.21-6-3c8b8cd03
 else GIT_DESCRIPTION=version-$PACKAGE_VERSION-$NEW_COMMITS-$GIT_COMMIT
 fi
 AC_DEFINE_UNQUOTED(GIT_DESCRIPTION,"$GIT_DESCRIPTION",[summary of git status])