mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-22 05:40:48 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@2804 72102866-910b-0410-8b05-ffd578937521
34 lines
990 B
Bash
Executable file
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
|