1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 01:43:08 +02:00

add an abs2rel.pl helper script (returns a path relative to another)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8570 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2007-09-01 15:20:33 +00:00
parent 17b183947d
commit 57cacb623b

17
scripts/abs2rel.pl Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/perl
#
# Copyright (C) 2007 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
use strict;
require File::Spec;
my $source = shift @ARGV;
my $target = shift @ARGV;
my $result = File::Spec->abs2rel($source, $target);
print "$result\n";