Skip to content

Commit

Permalink
tool enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMorano committed Jun 25, 2024
1 parent 1b84c1a commit 289141e
Show file tree
Hide file tree
Showing 18 changed files with 675 additions and 332 deletions.
82 changes: 43 additions & 39 deletions sbin/gar
Original file line number Diff line number Diff line change
Expand Up @@ -2,52 +2,56 @@
# GNU Compiler Collection
PN=${0##*/}
RF_OK=true
INCDIR=include
: ${INCDIR:=include}
INCDIRS=
if [[ ! -d ${INCDIR} ]] ; then
INCDIR=${REPOROOT}/include
if [[ ! -d ${INCDIR} ]] ; then
ED_OK=false
print -u2 "${PN}: no repository root found"
if [[ -n "${REPOROOT}" ]] && [[ -d "${REPOROOT}" ]] ; then
A=${REPOROOT}/include
if [[ -d "${A}" ]] ; then
INCDIR=${A}
fi
fi
fi
if [[ -n "${INCDIR}" ]] && [[ -d "${INCDIR}" ]] ; then
INCDIRS="-I${INCDIR}"
fi
PROG="print -u2 -- ${PN}: no-program"
if ${RF_OK} ; then
OPTS=
case ${PN} in
gcpp*)
PROG=gcpp13
OPTS="${INCDIRS}"
;;
gcc*)
PROG=gcc13
OPTS="${INCDIRS}"
;;
gpp*)
PROG=gpp13
OPTS="${INCDIRS}"
;;
gld*)
PROG=gld13
;;
granlib*)
PROG=granlib13
;;
gar*)
PROG=gar13
;;
gnm*)
PROG=gnm13
;;
gcov*)
PROG=gcov13
;;
gsize*|gsz*)
PROG=size
;;
esac
${PROG} ${OPTS} "${@}"
POPT="-pthread"
OPTS=
case ${PN} in
gcpp*)
PROG=gcpp13
OPTS="${INCDIRS}"
;;
gcc*)
PROG=gcc13
OPTS="${POPT} ${INCDIRS}"
;;
gpp*)
PROG=gpp13
OPTS="${POPT} ${INCDIRS}"
;;
gld*)
PROG=gld13
OPTS="${POPT}"
;;
granlib*)
PROG=granlib13
;;
gar*)
PROG=gar13
;;
gnm*)
PROG=gnm13
;;
gcov*)
PROG=gcov13
;;
gsize*|gsz*)
PROG=size
;;
esac
${PROG} ${OPTS} "${@}"
fi

82 changes: 43 additions & 39 deletions sbin/gcc
Original file line number Diff line number Diff line change
Expand Up @@ -2,52 +2,56 @@
# GNU Compiler Collection
PN=${0##*/}
RF_OK=true
INCDIR=include
: ${INCDIR:=include}
INCDIRS=
if [[ ! -d ${INCDIR} ]] ; then
INCDIR=${REPOROOT}/include
if [[ ! -d ${INCDIR} ]] ; then
ED_OK=false
print -u2 "${PN}: no repository root found"
if [[ -n "${REPOROOT}" ]] && [[ -d "${REPOROOT}" ]] ; then
A=${REPOROOT}/include
if [[ -d "${A}" ]] ; then
INCDIR=${A}
fi
fi
fi
if [[ -n "${INCDIR}" ]] && [[ -d "${INCDIR}" ]] ; then
INCDIRS="-I${INCDIR}"
fi
PROG="print -u2 -- ${PN}: no-program"
if ${RF_OK} ; then
OPTS=
case ${PN} in
gcpp*)
PROG=gcpp13
OPTS="${INCDIRS}"
;;
gcc*)
PROG=gcc13
OPTS="${INCDIRS}"
;;
gpp*)
PROG=gpp13
OPTS="${INCDIRS}"
;;
gld*)
PROG=gld13
;;
granlib*)
PROG=granlib13
;;
gar*)
PROG=gar13
;;
gnm*)
PROG=gnm13
;;
gcov*)
PROG=gcov13
;;
gsize*|gsz*)
PROG=size
;;
esac
${PROG} ${OPTS} "${@}"
POPT="-pthread"
OPTS=
case ${PN} in
gcpp*)
PROG=gcpp13
OPTS="${INCDIRS}"
;;
gcc*)
PROG=gcc13
OPTS="${POPT} ${INCDIRS}"
;;
gpp*)
PROG=gpp13
OPTS="${POPT} ${INCDIRS}"
;;
gld*)
PROG=gld13
OPTS="${POPT}"
;;
granlib*)
PROG=granlib13
;;
gar*)
PROG=gar13
;;
gnm*)
PROG=gnm13
;;
gcov*)
PROG=gcov13
;;
gsize*|gsz*)
PROG=size
;;
esac
${PROG} ${OPTS} "${@}"
fi

82 changes: 43 additions & 39 deletions sbin/gcov
Original file line number Diff line number Diff line change
Expand Up @@ -2,52 +2,56 @@
# GNU Compiler Collection
PN=${0##*/}
RF_OK=true
INCDIR=include
: ${INCDIR:=include}
INCDIRS=
if [[ ! -d ${INCDIR} ]] ; then
INCDIR=${REPOROOT}/include
if [[ ! -d ${INCDIR} ]] ; then
ED_OK=false
print -u2 "${PN}: no repository root found"
if [[ -n "${REPOROOT}" ]] && [[ -d "${REPOROOT}" ]] ; then
A=${REPOROOT}/include
if [[ -d "${A}" ]] ; then
INCDIR=${A}
fi
fi
fi
if [[ -n "${INCDIR}" ]] && [[ -d "${INCDIR}" ]] ; then
INCDIRS="-I${INCDIR}"
fi
PROG="print -u2 -- ${PN}: no-program"
if ${RF_OK} ; then
OPTS=
case ${PN} in
gcpp*)
PROG=gcpp13
OPTS="${INCDIRS}"
;;
gcc*)
PROG=gcc13
OPTS="${INCDIRS}"
;;
gpp*)
PROG=gpp13
OPTS="${INCDIRS}"
;;
gld*)
PROG=gld13
;;
granlib*)
PROG=granlib13
;;
gar*)
PROG=gar13
;;
gnm*)
PROG=gnm13
;;
gcov*)
PROG=gcov13
;;
gsize*|gsz*)
PROG=size
;;
esac
${PROG} ${OPTS} "${@}"
POPT="-pthread"
OPTS=
case ${PN} in
gcpp*)
PROG=gcpp13
OPTS="${INCDIRS}"
;;
gcc*)
PROG=gcc13
OPTS="${POPT} ${INCDIRS}"
;;
gpp*)
PROG=gpp13
OPTS="${POPT} ${INCDIRS}"
;;
gld*)
PROG=gld13
OPTS="${POPT}"
;;
granlib*)
PROG=granlib13
;;
gar*)
PROG=gar13
;;
gnm*)
PROG=gnm13
;;
gcov*)
PROG=gcov13
;;
gsize*|gsz*)
PROG=size
;;
esac
${PROG} ${OPTS} "${@}"
fi

82 changes: 43 additions & 39 deletions sbin/gcpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,52 +2,56 @@
# GNU Compiler Collection
PN=${0##*/}
RF_OK=true
INCDIR=include
: ${INCDIR:=include}
INCDIRS=
if [[ ! -d ${INCDIR} ]] ; then
INCDIR=${REPOROOT}/include
if [[ ! -d ${INCDIR} ]] ; then
ED_OK=false
print -u2 "${PN}: no repository root found"
if [[ -n "${REPOROOT}" ]] && [[ -d "${REPOROOT}" ]] ; then
A=${REPOROOT}/include
if [[ -d "${A}" ]] ; then
INCDIR=${A}
fi
fi
fi
if [[ -n "${INCDIR}" ]] && [[ -d "${INCDIR}" ]] ; then
INCDIRS="-I${INCDIR}"
fi
PROG="print -u2 -- ${PN}: no-program"
if ${RF_OK} ; then
OPTS=
case ${PN} in
gcpp*)
PROG=gcpp13
OPTS="${INCDIRS}"
;;
gcc*)
PROG=gcc13
OPTS="${INCDIRS}"
;;
gpp*)
PROG=gpp13
OPTS="${INCDIRS}"
;;
gld*)
PROG=gld13
;;
granlib*)
PROG=granlib13
;;
gar*)
PROG=gar13
;;
gnm*)
PROG=gnm13
;;
gcov*)
PROG=gcov13
;;
gsize*|gsz*)
PROG=size
;;
esac
${PROG} ${OPTS} "${@}"
POPT="-pthread"
OPTS=
case ${PN} in
gcpp*)
PROG=gcpp13
OPTS="${INCDIRS}"
;;
gcc*)
PROG=gcc13
OPTS="${POPT} ${INCDIRS}"
;;
gpp*)
PROG=gpp13
OPTS="${POPT} ${INCDIRS}"
;;
gld*)
PROG=gld13
OPTS="${POPT}"
;;
granlib*)
PROG=granlib13
;;
gar*)
PROG=gar13
;;
gnm*)
PROG=gnm13
;;
gcov*)
PROG=gcov13
;;
gsize*|gsz*)
PROG=size
;;
esac
${PROG} ${OPTS} "${@}"
fi

Loading

0 comments on commit 289141e

Please sign in to comment.