[28206] in Source-Commits
scripts commit: Replace svnversion with the short hash
daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Tue May 13 14:43:35 2014
Date: Tue, 13 May 2014 14:43:27 -0400
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201405131843.s4DIhRta013235@drugstore.mit.edu>
To: source-commits@MIT.EDU
https://github.com/mit-athena/scripts/commit/2b0e1a681cbc21557c9202101c72eb1b0d81493f
commit 2b0e1a681cbc21557c9202101c72eb1b0d81493f
Author: Jonathan Reed <jdreed@mit.edu>
Date: Tue May 13 13:37:56 2014 -0400
Replace svnversion with the short hash
We're no longer using Subversion; the stage1 installer should
be versioned using the git hash. We use HEAD since if you're
running "make install", it will operate on HEAD.
Also, there is no longer a need to exclude .svn when
creating the tarball
installer/pxe/stage1/Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/installer/pxe/stage1/Makefile b/installer/pxe/stage1/Makefile
index 98b3c50..f307165 100644
--- a/installer/pxe/stage1/Makefile
+++ b/installer/pxe/stage1/Makefile
@@ -7,7 +7,7 @@ default:
install: ${d}/debathena.tar.gz
${d}/debathena.tar.gz: debathena.preseed debathena-loader.sh debathena
- svnversion > debathena/version
- tar czvf ${d}/debathena.tar.gz --exclude "*~" --exclude "*/.svn*" debathena
+ git rev-parse --short HEAD > debathena/version
+ tar czvf ${d}/debathena.tar.gz --exclude "*~" debathena
cp debathena.preseed debathena-loader.sh ${d}
rm debathena/version