tools-make/transform_paths.sh
Ovidiu Predescu a11eebe8cc Added support for Boehm's garbage collector in libFoundation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@2804 72102866-910b-0410-8b05-ffd578937521
1998-05-28 06:56:11 +00:00

34 lines
990 B
Bash
Executable file

#! /bin/sh
# transform_paths.sh
#
# Copyright (C) 1997 Free Software Foundation, Inc.
#
# Author: Ovidiu Predescu <ovidiu@net-community.com>
# Date: October 1997
#
# This file is part of the GNUstep Makefile Package.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# You should have received a copy of the GNU General Public
# License along with this library; see the file COPYING.LIB.
# If not, write to the Free Software Foundation,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# Takes a list of paths possibly containing relative paths and outputs a
# list containing only absolute paths based upon the current directory.
if [ -z "$*" ]; then
exit 0
fi
curdir=`pwd`
for dir in $@; do
if [ -d $curdir/$dir ]; then
echo "`(cd $curdir/$dir; pwd)`"
fi
done