Commit 65921579 authored by thomas.forbriger's avatar thomas.forbriger
Browse files

[WP] (issue14): replace echo bei printf

parent da7fcf8a
......@@ -18,6 +18,6 @@ do
echo ${mf}:
grep ' -l' ${mf} | tr ' ' '\n' | egrep '^-l|PGP' \
| sed -e 's/-l//' | egrep -v \' | sort | uniq | tr '\n' ' '
echo -e '\n'
printf '\n\n'
done
# ----- END OF checklinkedlibs -----
......@@ -36,7 +36,7 @@
#
dependency()
{
echo -n "${1}:"
printf "${1}:"
cpp -M $CPPFLAGS $1 | sed -e 's/\\$/ /' | tr '\n' ' '
echo
}
......
......@@ -11,23 +11,23 @@
#
# ============================================================================
#
echo -n "Date: "
printf "Date: "
LANG=C date 2>&1
echo -e -n "User: ${USER}; full name: "
printf "User: ${USER}; full name: "
egrep "^${USER}" /etc/passwd | cut -f 5 -d ':'
echo -e "\nHost and kernel:"
printf "\nHost and kernel:"
uname -a 2>&1
echo -e "\nOperating system:"
printf "\nOperating system:\n"
if ! type lsb_release &> /dev/null; \
then echo -e "The program lsb_release wasn't installed."; \
echo -e "No information provided."; \
then printf "The program lsb_release wasn't installed.\n"; \
printf "No information provided.\n"; \
fi
lsb_release -a 2>&1
echo -e "\nCompilers:"
(echo -n "${CC}: "; ${CC} --version) 2>&1 | head -1
(echo -n "${CXX}: "; ${CXX} --version) 2>&1 | head -1
(echo -n "${CPP}: "; ${CPP} --version) 2>&1 | head -1
(echo -n "${FC}: "; ${FC} --version) 2>&1 | head -1
(echo -n "doxygen: "; doxygen --version) 2>&1 | head -1
(echo -n "make: "; make --version) 2>&1 | head -1
printf "\nCompilers:\n"
(printf "${CC}: "; ${CC} --version) 2>&1 | head -1
(printf "${CXX}: "; ${CXX} --version) 2>&1 | head -1
(printf "${CPP}: "; ${CPP} --version) 2>&1 | head -1
(printf "${FC}: "; ${FC} --version) 2>&1 | head -1
(printf "doxygen: "; doxygen --version) 2>&1 | head -1
(printf "make: "; make --version) 2>&1 | head -1
# ----- END OF systemtype.sh -----
......@@ -147,7 +147,7 @@ hasgoal() {
# parameter $*: white-space separated list of directories
#
reportdirs() {
echo -e "\nDirectories:"
printf "\nDirectories:\n"
while test -n "$1"
do
echo " $1"
......@@ -169,7 +169,7 @@ reportdirs() {
makegoalindir() {
GOAL="$1"
DIR="$2"
echo -e "\nnext:\n directory: $DIR\n goal: $GOAL"
printf "\nnext:\n directory: $DIR\n goal: $GOAL\n"
if hasmake "$DIR"
then
if hasgoal "$GOAL" "$DIR"
......
......@@ -140,7 +140,7 @@ do
for file in $FILES
do
FILE=$(echo $file | sed -e s,$BASEPATH,,)
echo -e "cus 0\nend" \
printf "cus 0\nend\n" \
| tidofi -o -cs -type thiesdl1:tr -Type bin $TMPFILE $file
export LANG=C
LINE=$(printf "%s: %5.1f %s\n" \
......
......@@ -310,7 +310,7 @@ TESTS=$(patsubst %.c,%,$(CTESTS)) $(patsubst %.f,%,$(FTESTS)) \
$(patsubst %.cc,%,$(CXXTESTS))
testsexe: $(TESTS)
for d in $^; do /bin/echo -e "\n\nGO FOR $$d?"; read a; $$d; done
for d in $^; do printf "\n\nGO FOR $$d?\n"; read a; $$d; done
%.run: tests/%; $<; /bin/rm -fv $<
%.out: tests/%; ( $< 2>&1 ) > $@; /bin/rm -fv $<
......@@ -346,23 +346,23 @@ fortran.tmp: $(FCODE)
libtime.doc: README kernel.tmp fortran.tmp libtime.htmp timeutil.htmp \
libtime++.htmp $(ALLCODE)
cat README > $@
echo -e " \n \nDOCUMENTATION OF THE FORTRAN LIBRARAY KERNEL" \
printf " \n \nDOCUMENTATION OF THE FORTRAN LIBRARAY KERNEL" \
"\n============================================\n\n" >> $@
cat kernel.tmp >> $@
echo -e ' \n \nDOCUMENTATION OF THE FORTRAN SPECIFIC CODE' \
'\n==========================================\n' >> $@
printf ' \n \nDOCUMENTATION OF THE FORTRAN SPECIFIC CODE' \
'\n==========================================\n\n' >> $@
cat fortran.tmp >> $@
echo -e ' \n \nDOCUMENTATION OF THE C WRAPPER CODE' \
'\n===================================\n' >> $@
printf ' \n \nDOCUMENTATION OF THE C WRAPPER CODE' \
'\n===================================\n\n' >> $@
cat libtime.htmp >> $@
echo -e ' \n \nDOCUMENTATION OF THE TIMEUTIL C++ CLASSES' \
'\n=========================================\n' >> $@
printf ' \n \nDOCUMENTATION OF THE TIMEUTIL C++ CLASSES' \
'\n=========================================\n\n' >> $@
cat libtime++.htmp >> $@
echo -e ' \n \nDOCUMENTATION OF THE OLD TIMEUTIL C CODE' \
'\n========================================\n' >> $@
printf ' \n \nDOCUMENTATION OF THE OLD TIMEUTIL C CODE' \
'\n========================================\n\n' >> $@
cat timeutil.htmp >> $@
echo -e ' \n \nCVS REVISIONS' \
'\n=============\n' >> $@
printf ' \n \nCVS REVISIONS' \
'\n=============\n\n' >> $@
ident $(ALLFILES) | egrep '^ +\$$Id.+\$$' | cut -c 5- \
| sort | uniq | awk '{printf "%5s %25s %6s %12s %10s %8s %s\n", \
$$1, $$2, $$3, $$4, $$5, $$6, $$7;}' >> $@
......
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