Mercurial > sdl-ios-xcode
view test/mkinstalldirs @ 1018:012af0b7e8e6
Date: Fri, 24 Dec 2004 23:32:06 -0500
From: Mike Frysinger
Subject: [SDL] minor fix for gcc-2.x building
in src/video/directfb/SDL_DirectFB_video.c, some variables are not declared at
the beginning of scope ... newer gcc's will accept this, but gcc-2.x does not
find attached a simple patch by Matt Taylor to resolve this
http://bugs.gentoo.org/show_bug.cgi?id=75392
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 27 Dec 2004 20:03:53 +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