]> err.no Git - sope/blob - gnustep-make/transform_paths.sh
added scriptaculous
[sope] / gnustep-make / transform_paths.sh
1 #!/bin/sh
2 # transform_paths.sh
3 #
4 # Copyright (C) 1997 Free Software Foundation, Inc.
5 #
6 # Author: Ovidiu Predescu <ovidiu@net-community.com>
7 # Date: October 1997
8 # Rewritten: Nicola Pero <n.pero@mi.flashnet.it>
9 # Date: March 2001
10 #
11 #
12 # This file is part of the GNUstep Makefile Package.
13 #
14 # This library is free software; you can redistribute it and/or
15 # modify it under the terms of the GNU General Public License
16 # as published by the Free Software Foundation; either version 2
17 # of the License, or (at your option) any later version.
18
19 # You should have received a copy of the GNU General Public
20 # License along with this library; see the file COPYING.LIB.
21 # If not, write to the Free Software Foundation,
22 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
24 # Takes a list of paths possibly containing relative paths and outputs a
25 # list containing only absolute paths based upon the current directory.
26
27 if [ -z "$*" ]; then
28   exit 0
29 fi
30
31 curdir="`pwd`"
32
33 for dir in $@; do
34   if [ -d "$curdir/$dir" ]; then
35     echo "$curdir/$dir"
36   else
37     echo "$dir"
38   fi
39 done