anaconda/mkinstaller.sh
glen
cvs at pld-linux.org
Tue May 16 19:05:45 CEST 2006
Author: glen
Date: Tue May 16 19:05:43 2006
New Revision: 7409
Modified:
anaconda/mkinstaller.sh
Log:
- unlocalize
Modified: anaconda/mkinstaller.sh
==============================================================================
--- anaconda/mkinstaller.sh (original)
+++ anaconda/mkinstaller.sh Tue May 16 19:05:43 2006
@@ -14,7 +14,7 @@
# set up the working environment and lots of variables
export PYTHONPATH=/usr/lib/anaconda
export PATH="$PATH:/usr/lib/anaconda-runtime:."
-DIR=/home/users/patrys/pld-dist/i686
+DIR=$HOME/pld-dist/i686
# who/where are we?
mycalled="$0"
myname="$(basename "$0")"
@@ -31,13 +31,14 @@
RELEASE=1.99.0
distro=porpavka
RHLNAME="PLD $RELEASE ($distro) with updates to $today"
-#
+
# an attempt to get a sane author name - hack as needed
-author="Tony Nugent <tony at linuxworks.com.au"
-localrealuser=$(id -un $local)
-localrealuser=tony
-domain="$(hostname -d)"
-publisher="$(grep "^${localrealuser}:" /etc/passwd|cut -d: -f5) <$localrealuser@$domain>"
+if [ ! -f CVSROOT/users ]; then
+ cvs -d :pserver:cvs at cvs.pld-linux.org:/cvsroot co CVSROOT/users
+fi
+author=$(awk -F: -vuser="$USER" '$1 == user {printf("%s <%s at pld-linux.org>\n", $3, $1)}' CVSROOT/users)
+
+publisher="$author"
# Result: publisher="Tony Nugent <tony at linuxworks.com.au>"
#
# set mkisofs options here - refer to the man page.
More information about the pld-cvs-commit
mailing list