Raymond Toy pushed to branch issue-363-add-version-number at cmucl / cmucl
Commits:
-
2dcd20b0
by Raymond Toy at 2025-01-09T20:11:18-08:00
-
a8014384
by Raymond Toy at 2025-01-09T20:17:29-08:00
-
c60a9a25
by Raymond Toy at 2025-01-09T20:18:41-08:00
5 changed files:
Changes:
| ... | ... | @@ -131,9 +131,9 @@ buildit () |
| 131 | 131 | if [ "$ENABLE" = "yes" ];
|
| 132 | 132 | then
|
| 133 | 133 | $TOOLDIR/clean-target.sh $CLEAN_FLAGS $TARGET || { echo "Failed: $TOOLDIR/clean-target.sh"; exit 1; }
|
| 134 | - set -x
|
|
| 134 | + #set -x
|
|
| 135 | 135 | time $BUILDWORLD $TARGET $OLDLISP $BOOT || { echo "Failed: $BUILDWORLD"; exit 1; }
|
| 136 | - set +x
|
|
| 136 | + #set +x
|
|
| 137 | 137 | if [ "$REBUILD_LISP" = "yes" ]; then
|
| 138 | 138 | $TOOLDIR/rebuild-lisp.sh $TARGET
|
| 139 | 139 | fi
|
| ... | ... | @@ -144,15 +144,15 @@ buildit () |
| 144 | 144 | |
| 145 | 145 | if [ "$BUILD_WORLD2" = "yes" ];
|
| 146 | 146 | then
|
| 147 | - set -x
|
|
| 147 | + #set -x
|
|
| 148 | 148 | $BUILDWORLD $TARGET $OLDLISP $BOOT || { echo "Failed: $BUILDWORLD"; exit 1; }
|
| 149 | - set +x
|
|
| 149 | + #set +x
|
|
| 150 | 150 | fi
|
| 151 | 151 | $TOOLDIR/load-world.sh $TARGET "$VERSION" || { echo "Failed: $TOOLDIR/load-world.sh"; exit 1; }
|
| 152 | 152 | |
| 153 | - set -x
|
|
| 153 | + #set -x
|
|
| 154 | 154 | $TARGET/lisp/lisp -lib $TARGET/lisp -batch -noinit -nositeinit < /dev/null || { echo "Failed: $TARGET/lisp/lisp -batch -noinit"; exit 1; }
|
| 155 | - set +x
|
|
| 155 | + #set +x
|
|
| 156 | 156 | return 0;
|
| 157 | 157 | fi
|
| 158 | 158 | }
|
| 1 | 1 | #!/bin/sh
|
| 2 | 2 | |
| 3 | 3 | # Script to determine the cmucl version based on git describe
|
| 4 | -GIT_HASH="`(cd src; git describe --dirty 2>/dev/null || git describe 2>/dev/null)`"
|
|
| 4 | +GIT_HASH="`(git describe --dirty 2>/dev/null || git describe 2>/dev/null)`"
|
|
| 5 | 5 | # echo GIT_HASH = ${GIT_HASH}
|
| 6 | 6 | |
| 7 | 7 | if expr "X${GIT_HASH}" : 'Xsnapshot-[0-9][0-9][0-9][0-9]-[01][0-9]' > /dev/null; then
|
| ... | ... | @@ -149,7 +149,7 @@ if [ -n "$COMPRESS_ARG" ]; then |
| 149 | 149 | esac
|
| 150 | 150 | fi
|
| 151 | 151 | |
| 152 | -set -x
|
|
| 152 | +#set -x
|
|
| 153 | 153 | if [ -z "$VERSION" ]; then
|
| 154 | 154 | # If a default version exists, use it. Otherwise this is an
|
| 155 | 155 | # error---at least one of these must not be empty.
|
| ... | ... | @@ -49,7 +49,7 @@ function cleanup { |
| 49 | 49 | |
| 50 | 50 | trap cleanup EXIT
|
| 51 | 51 | |
| 52 | -set -x
|
|
| 52 | +#set -x
|
|
| 53 | 53 | if [ -n "${TESTDIR}" ]; then
|
| 54 | 54 | TESTDIRARG=" :test-directory \"${TESTDIR}/\""
|
| 55 | 55 | else
|
| ... | ... | @@ -54,8 +54,6 @@ version.o : version.c version |
| 54 | 54 | $(CC) ${CFLAGS} $(CPPFLAGS) -DVERSION=`cat version` -c $<
|
| 55 | 55 | |
| 56 | 56 | lisp.o : lisp.c
|
| 57 | - echo GIT_HASH = ${GIT_HASH}
|
|
| 58 | - echo DEFAULT_VERSION = ${DEFAULT_VERSION}
|
|
| 59 | 57 | $(CC) ${CFLAGS} $(CPPFLAGS) -DCMUCL_VERSION="\"${DEFAULT_VERSION}\"" -c $<
|
| 60 | 58 | |
| 61 | 59 | lisp: ${OBJS} version.o
|
| ... | ... | @@ -127,7 +125,8 @@ translations: |
| 127 | 125 | rm -f /tmp/$$$$-updated-$$f.po /tmp/$$$$-orig-$$f.po; \
|
| 128 | 126 | done; done
|
| 129 | 127 | |
| 130 | -.PHONY : translations
|
|
| 128 | +# Always build lisp.o so that the embedded version is updated.
|
|
| 129 | +.PHONY : translations lisp.o
|
|
| 131 | 130 | |
| 132 | 131 | # Like translations, but we don't compute the diff. We just overwrite
|
| 133 | 132 | # the po files in the repository so that we can tell if the
|