Commit 1d9f9e35 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

avoid absolut command paths

This is a legacy commit from before 2015-05-18.
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/trunk
SVN Revision: 5366
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent a43fee31
#!/bin/sh
#!sh
# this is <csmksed.sh>
# ----------------------------------------------------------------------------
# $Id$
......@@ -30,7 +30,7 @@ function dirnames {
read a
while test -n "$a"
do
/usr/bin/dirname $a
dirname $a
read a
done
}
......@@ -53,15 +53,15 @@ function mksed {
read a
while test -n "$a"
do
ID=$(echo $a | /usr/bin/tr '/' '_')
ID=$(echo $a | tr '/' '_')
SEDFILE=sed$ID
SHFILE=sh$ID
/usr/bin/grep $a $FL | sedcmd > $SEDFILE
echo "#!/bin/sh" > $SHFILE
echo 'BUX=$(/usr/bin/date +"%Y_%m_%d_%H%M")' >> $SHFILE
echo '/usr/bin/sed --file='$SEDFILE' --in-place=$BUX '$a'/checksumfile.cs' >> $SHFILE
echo '/usr/bin/mv -fv '$SEDFILE' '$SEDFILE'.used' >> $SHFILE
/usr/bin/chmod +x $SHFILE
grep $a $FL | sedcmd > $SEDFILE
echo "#!sh" > $SHFILE
echo 'BUX=$(date +"%Y_%m_%d_%H%M")' >> $SHFILE
echo 'sed --file='$SEDFILE' --in-place=$BUX '$a'/checksumfile.cs' >> $SHFILE
echo 'mv -fv '$SEDFILE' '$SEDFILE'.used' >> $SHFILE
chmod +x $SHFILE
read a
done
}
......@@ -74,13 +74,13 @@ then
exit 2
fi
TMPBASE=$(/usr/bin/mktemp)
trap "/bin/rm -fv ${TMPBASE}*" HUP KILL QUIT ABRT INT TERM EXIT
TMPBASE=$(mktemp)
trap "rm -fv ${TMPBASE}*" HUP KILL QUIT ABRT INT TERM EXIT
FULLLIST=$TMPBASE.fl
/usr/bin/cat $* > $FULLLIST
cat $* > $FULLLIST
PATHLIST=$TMPBASE.pl
/usr/bin/cat $* | dirnames | /usr/bin/sort | /usr/bin/uniq > $PATHLIST
/usr/bin/cat $PATHLIST | mksed $FULLLIST
cat $* | dirnames | sort | uniq > $PATHLIST
cat $PATHLIST | mksed $FULLLIST
# ----- END OF csmksed.sh -----
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