Commit graph

16 commits

Author SHA1 Message Date
Richard Lowe 1eb4300bdd Only generate versions in SBCL git checkouts
Sometimes larger build systems contain copies of SBCL sources, if those
systems are managed with git, we don't want to trample version.lisp-expr
with _their_ version, but keep the version of SBCL.

Attempt to detect this by checking whether
`git rev-parse --show-top-level`/run-sbcl.sh exists, if not assume git
is operating on a checkout of something other than SBCL
2019-07-17 19:16:13 +01:00
David Vazquez 1e226263db Do not rely on which to be present in the system
For portability, it is better to use the built-in `command` to check the
existance of executables in the system.
2015-10-18 18:57:53 +03:00
Stas Boukarev b1931c43a9 Remove an obsolete comment from generate-version.sh 2015-02-24 15:01:50 +03:00
Stas Boukarev 21147ec04d Fix generate-version.sh inside a release tarball. 2015-02-01 15:26:13 +03:00
Stas Boukarev 79521d9e3e Fix generate-version on BSD.
wc -l returns formatted results, strip whitespaces before comparing
with "0".
2015-01-01 20:50:28 +03:00
Jim Wise 987e39e16c Fix HEAD ref lookups, and compatibility for non-bash shells. 2011-10-24 09:38:25 -04:00
Jim Wise 9ae145dfb3 Update to work with non-bash versions of expr. 2011-10-24 09:24:30 -04:00
Nikodemus Siivola 1ae15ca163 generate-version.sh fixes
Make it work with detached heads and historical builds.

 Previously a detached head broke the build, and trying to
 do

   git checkout master; git reset --hard sbcl-1.0.50; sh make.sh

 got the version number wrong.
2011-08-10 13:36:36 +03:00
Jim Wise 7a4a93e36c Minor tweak for Solaris /bin/sh compatibility. 2011-07-22 15:43:46 -04:00
Juho Snellman 75b43353ce Fix generate_version.sh for release tarballs 2011-07-12 00:05:01 +02:00
Nikodemus Siivola db237f92af build: tweak generate-version.sh to work with older Git
Pre-1.7.2 Gits are pretty common out in the wild, so use wc -l to
  get the revision counts instead of rev-list --count.

  This has been verified to work with at least Git v1.6.0.2.
2011-06-15 10:49:14 +03:00
Jim Wise b65e65f582 Fix thinko in one of the Solaris-compat changes in last commit. 2011-06-09 08:56:47 -04:00
Jim Wise 0e3fa65c2c Tweak to work with SunOS /bin/sh. 2011-06-08 16:27:40 -04:00
Jim Wise 4191c34425 Tweak to work with SunOS 10's ancient sh implementation. 2011-06-06 13:30:29 -04:00
Nikodemus Siivola 0fd1ec424a check that git supports --count with rev-list
git rev-list --count is probably the newest git feature we use in
  the build, so check that it works and complain if not.
2011-06-06 19:13:06 +03:00
Nikodemus Siivola bf5163e4f0 A git-only SBCL workflow
This updates the SBCL build and release process to be more compatible
 with distributed development -- to facilitate moving the upstream
 repository into Git.

 A detailed description of what is going on here is in
 doc/GIT-WORKFLOW.md.

 Some highlights:

  * Drop version.lisp-expr and branch-version.lisp-expr.

  * Auto-generate the version at build time using information
    from Git, incorporating:
    - Last release number.
    - Number of commits on origin/master since last release.
    - Current branch, if there are commits not on origin/master.
    - Number of commits not on origin/master.
    - SHA1 id of the last commit.
    - Optional -dirty marker.

  * Update release.sh to work with Git.

  * Make source-distribution.sh exclude the .git directory from tarballs.

  * Release tags contain NEWS for that release.
2011-06-06 09:48:08 +03:00