Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (481c9cebf5712319a4d92ceb287d48dd16a10dc6)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Justin Boffemmyer <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (481c9cebf5712319a4d92ceb287d48dd16a10dc6)
  • Date: Thu, 1 Oct 2009 09:37:04 -0500

GIT changes to test cauldron by Justin Boffemmyer <flux AT sourcemage.org>:

iso/isolinux/isolinux.msg | 2 +-
scripts/mkrelease.sh | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 481c9cebf5712319a4d92ceb287d48dd16a10dc6
Author: Justin Boffemmyer <flux AT sourcemage.org>
Commit: Justin Boffemmyer <flux AT sourcemage.org>

automate copyright updates

Replace the hardcoded end year of our copyright with a placeholder
string in isolinux.msg, and use mkrelease.sh to replace that string with
the current year from the machine generating the ISO, at the time the
ISO is generated. This alleviates the need for ISO creators to remember
to update the copyright year manually (as long as the date/time of the
machine generating the ISO is correct).

diff --git a/iso/isolinux/isolinux.msg b/iso/isolinux/isolinux.msg
index 9309ca0..4f48a3b 100644
--- a/iso/isolinux/isolinux.msg
+++ b/iso/isolinux/isolinux.msg
@@ -3,7 +3,7 @@ This ISO made using grimoire @GRIMOIRE_VERSION@.

09Welcome07 to 04Source Mage GNU/Linux07
Copyright (C) 2000-2001 by Kyle Sallee
-Copyright (C) 2002-2009 by Source Magers <www.sourcemage.org>
+Copyright (C) 2002-@ISO_YEAR@ by Source Magers <www.sourcemage.org>
All Rights Reserved

Source Mage is distributed under the terms of the GNU General Public License
diff --git a/scripts/mkrelease.sh b/scripts/mkrelease.sh
index 9305b6a..3a86f72 100755
--- a/scripts/mkrelease.sh
+++ b/scripts/mkrelease.sh
@@ -74,6 +74,10 @@ done
# Replace the GRIMOIRE_VERSION placeholder (currently only in isolinux.msg).
sed -i "s/@GRIMOIRE_VERSION@/$GRIMOIRE_VER/" "$TARGET"/isolinux/isolinux.msg

+# Replace the ISO_YEAR placeholder with the current year in which the ISO is
generated
+# This makes keeping the copyright up-to-date trivial for the person
building the ISO
+sed -i "s/@ISO_YEAR@/$(date +%Y)/" "$TARGET"/isolinux/isolinux.msg
+
# Generate the release ISO. Currently we force KEEP and COMPRESSION.
if [[ -n $ISOCHOWN ]]
then



  • [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (481c9cebf5712319a4d92ceb287d48dd16a10dc6), Justin Boffemmyer, 10/01/2009

Archive powered by MHonArc 2.6.24.

Top of Page