diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-04-13 15:48:07 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-04-14 09:25:19 +0200 |
commit | 097562b8bbc04d421e0ab5e1e7a0b705e393c20e (patch) | |
tree | 256eea10746da067c2af565ac177d981c00becc8 /nx-X11/config/util/gccmdep.cpp | |
parent | a8dad09a56b8cde0b03b8a5cdc77370fc0a428a0 (diff) | |
download | nx-libs-097562b8bbc04d421e0ab5e1e7a0b705e393c20e.tar.gz nx-libs-097562b8bbc04d421e0ab5e1e7a0b705e393c20e.tar.bz2 nx-libs-097562b8bbc04d421e0ab5e1e7a0b705e393c20e.zip |
drop: nx-X11/config/util/ (not needed at build time).
Diffstat (limited to 'nx-X11/config/util/gccmdep.cpp')
-rw-r--r-- | nx-X11/config/util/gccmdep.cpp | 126 |
1 files changed, 0 insertions, 126 deletions
diff --git a/nx-X11/config/util/gccmdep.cpp b/nx-X11/config/util/gccmdep.cpp deleted file mode 100644 index ff4b12a3d..000000000 --- a/nx-X11/config/util/gccmdep.cpp +++ /dev/null @@ -1,126 +0,0 @@ -XCOMM!/bin/sh - -XCOMM -XCOMM makedepend which uses 'gcc -M' -XCOMM -XCOMM $XFree86: xc/config/util/gccmdep.cpp,v 3.10tsi Exp $ -XCOMM -XCOMM Based on mdepend.cpp and code supplied by Hongjiu Lu <hjl@nynexst.com> -XCOMM - -TMP=mdep$$.tmp -CC=CCCMD -RM=RMCMD -LN=LNCMD -MV=MVCMD - -${RM} ${TMP} - -trap "${RM} ${TMP}*; exit 1" 1 2 15 -trap "${RM} ${TMP}*; exit 0" 1 2 13 - -files= -makefile= -endmarker= -magic_string='# DO NOT DELETE' -append=n -args= - -while [ $# != 0 ]; do - if [ "$endmarker"x != x -a "$endmarker" = "$1" ]; then - endmarker= - else - case "$1" in - -D*|-I*|-U*) - args="$args '$1'" - ;; - -g*|-O*) - ;; - *) - if [ "$endmarker"x = x ]; then - case $1 in -XCOMM ignore these flags - -w|-o|-cc) - shift - ;; - -v) - ;; - -s) - magic_string="$2" - shift - ;; - -f*) - if [ "$1" = "-f-" ]; then - makefile="-" - elif [ "$1" = "-f" ]; then - makefile="$2" - shift - else - echo "$1" | sed 's/^\-f//' >${TMP}arg - makefile="`cat ${TMP}arg`" - rm -f ${TMP}arg - fi - ;; - --*) - endmarker=`echo $1 | sed 's/^\-\-//'` - if [ "$endmarker"x = x ]; then - endmarker="--" - fi - ;; - -a) - append=y - ;; - -*) - echo "Unknown option '$1' ignored" 1>&2 - ;; - *) - files="$files $1" - ;; - esac - fi - ;; - esac - fi - shift -done - -if [ x"$files" = x ]; then -XCOMM Nothing to do - exit 0 -fi - -case "$makefile" in - '') - if [ -r makefile ]; then - makefile=makefile - elif [ -r Makefile ]; then - makefile=Makefile - else - echo 'no makefile or Makefile found' 1>&2 - exit 1 - fi - ;; -esac - -if [ X"$makefile" != X- ]; then - if [ x"$append" = xn ]; then - sed -e "/^$magic_string/,\$d" < $makefile > $TMP - echo "$magic_string" >> $TMP - else - cp $makefile $TMP - fi -fi - -CMD="$CC -M $args $files" -if [ X"$makefile" != X- ]; then - CMD="$CMD >> $TMP" -fi -eval $CMD -if [ X"$makefile" != X- ]; then - $RM ${makefile}.bak - $MV $makefile ${makefile}.bak - $MV $TMP $makefile -fi - -$RM ${TMP}* -exit 0 |