2008-09-24 02:29:44 +08:00
|
|
|
#!/usr/bin/env perl
|
2007-09-01 23:20:33 +08:00
|
|
|
#
|
|
|
|
# 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";
|