view mkinstalldirs @ 738:82b85b731fe3

Date: Mon, 10 Nov 2003 19:57:56 +0100 From: Stephane Marchesin <stephane.marchesin@wanadoo.fr> Subject: [SDL] SDL and gcc >= 3.3.1 fix Lately, I upgraded my gcc compiler and could trigger the error described in this thread : http://www.libsdl.org/pipermail/sdl/2003-September/056163.html SDL_RLEaccel.c: In function `RLEClipBlit': SDL_RLEaccel.c:845: error: invalid `asm': invalid expression as operand SDL_RLEaccel.c:845: error: invalid `asm': invalid expression as operand SDL_RLEaccel.c:845: error: invalid `asm': invalid expression as operand The attached patch fixes this issue, and is smaller than the previous one, as I was able to trigger the issue, so I could narrow it.
author Sam Lantinga <slouken@libsdl.org>
date Fri, 14 Nov 2003 20:21:22 +0000
parents 74212992fb08
children
line wrap: on
line source

#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain

# $Id$

errstatus=0

for file
do
   set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
   shift

   pathcomp=
   for d
   do
     pathcomp="$pathcomp$d"
     case "$pathcomp" in
       -* ) pathcomp=./$pathcomp ;;
     esac

     if test ! -d "$pathcomp"; then
        echo "mkdir $pathcomp"

        mkdir "$pathcomp" || lasterr=$?

        if test ! -d "$pathcomp"; then
  	  errstatus=$lasterr
        fi
     fi

     pathcomp="$pathcomp/"
   done
done

exit $errstatus

# mkinstalldirs ends here