Commit 2b3f374f authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

avoid finger command; support gentoo too

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/branches/any2matlab0.4
SVN Revision: 3901
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 33612684
......@@ -16,6 +16,8 @@
# 19/03/2011 V1.3 moved README.1st and README.compile
# install.sh now checks return status of commands
# install.sh now can be executed from anywhere
# 05/05/2011 V1.4 uses grep instaed of finger; supports more
# Linux distributions when looking for release file
#
#----------------------------------------------------------------------
#
......@@ -226,6 +228,13 @@ $(addprefix $(TMPPATH)/,$(INFOFILESFROMSVN)):
# README.system
# information on system where this package was created on
#
# this rule depends on specific files being present in the system directories
# of the specific distribution in use for package creation. When extending
# this rule to match other operating systems or distributions too,
# http://linuxmafia.com/faq/Admin/release-files.html
# is a useful resource. (Thanks to Daniel Armbruster)
#
$(TMPPATH)/README.system:
mkdir -pv $(dir $@)
echo "Context in which this package was created" > $@
......@@ -234,7 +243,8 @@ $(TMPPATH)/README.system:
echo -e "\nDate:" >> $@
date 2>&1 >> $@
echo -e "\nPreparer:" >> $@
finger -l | grep Name: 2>&1 >> $@
echo -e -n "Username: ${USER}; full name: " >> $@
egrep "^${USER}" /etc/passwd | cut -f 5 -d ':' >> $@
echo -e "\nHost and kernel:" >> $@
uname -a 2>&1 >> $@
echo -e "\nOperating system:" >> $@
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment