Skip to Content.
Sympa Menu

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

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 (c21a3bcde6ed15ba391b927295e9e779aa6754de)
  • Date: Mon, 13 Oct 2008 21:56:51 -0500

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

scripts/mkiso.sh | 4 ++++
scripts/mkrelease.sh | 3 +++
2 files changed, 7 insertions(+)

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

scripts/mk{iso,release}.sh: chown files option

The mkiso and mkrelease scripts can now (at the request of the user)
chown the output files to $UID:$GID. This is useful since most of the
scripts run with superuser privileges (mkisofs requires it for
example), so without doing this the files would be (likely) owned by
root and the user wouldn't be able to modify them (without switching
to root).

diff --git a/scripts/mkiso.sh b/scripts/mkiso.sh
index 5948a7c..4e6e95f 100755
--- a/scripts/mkiso.sh
+++ b/scripts/mkiso.sh
@@ -1,6 +1,7 @@
#!/bin/bash

COMPRESS="no"
+ISOCHOWN=false
KEEP=

function usage() {
@@ -35,6 +36,7 @@ while getopts "z" Options
do
case $Options in
k ) KEEP="-k" ;;
+ u ) ISOCHOWN=true ;;
z ) COMPRESS=true ;;
h ) usage ;;
* ) echo "Unrecognized option" >&2 && usage ;;
@@ -65,3 +67,5 @@ then
$SUODOCMD bzip2 -f -v $KEEP "${ISO_VERSION}.iso"
fi

+[[ $ISOCHOWN ]] && $SUDOCMD chown $UID:$GID ${ISO_VERSION}.iso*
+
diff --git a/scripts/mkrelease.sh b/scripts/mkrelease.sh
index 48010bd..055135c 100755
--- a/scripts/mkrelease.sh
+++ b/scripts/mkrelease.sh
@@ -3,6 +3,8 @@
TARGET=$1
VERSION=$2

+ISOCHOWN=""
+
function usage() {
cat << EndUsage
Usage: $(basename $0) [-h] /path/to/target VERSION
@@ -33,6 +35,7 @@ EndUsage
while getopts ":h" Option
do
case $Option in
+ u ) ISOCHOWN="-u" ;;
h ) usage ;;
* ) echo "Unrecognized option." >&2 && usage ;;
esac



  • [SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (c21a3bcde6ed15ba391b927295e9e779aa6754de), Justin Boffemmyer, 10/13/2008

Archive powered by MHonArc 2.6.24.

Top of Page