tools-make/transform_paths.sh
Nicola Pero 43e83b19c6 Fixed, rewritten
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@9446 72102866-910b-0410-8b05-ffd578937521
2001-03-19 00:29:22 +00:00

39 lines
1 KiB
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
# Rewritten: Nicola Pero <n.pero@mi.flashnet.it>
# Date: March 2001
#
#
# 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 "$curdir/$dir"
else
echo "$dir"
fi
done