mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-02 09:43:46 +01:00
add an abs2rel.pl helper script (returns a path relative to another)
SVN-Revision: 8570
This commit is contained in:
parent
393c8bff07
commit
b518cc2c00
1 changed files with 17 additions and 0 deletions
17
scripts/abs2rel.pl
Executable file
17
scripts/abs2rel.pl
Executable 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";
|
||||
Loading…
Add table
Reference in a new issue