From: Nicolas Thill Date: Sat, 1 Sep 2007 15:20:33 +0000 (+0000) Subject: add an abs2rel.pl helper script (returns a path relative to another) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b518cc2c00e024805c749da5e153f6fca5ca8c30;p=openwrt%2Fstaging%2Fthess.git add an abs2rel.pl helper script (returns a path relative to another) SVN-Revision: 8570 --- diff --git a/scripts/abs2rel.pl b/scripts/abs2rel.pl new file mode 100755 index 0000000000..1bd9a14af1 --- /dev/null +++ b/scripts/abs2rel.pl @@ -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";