summaryrefslogtreecommitdiff
path: root/solenv/bin/packimages.pl
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2005-01-28 15:05:32 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2005-01-28 15:05:32 +0000
commitc953597e83ada7f8594f5830b58cd88ee460f09e (patch)
tree6a11933d92975ac570f220eb4eb9e19d60971615 /solenv/bin/packimages.pl
parentfcabae9f46b2bcd8b7a245e85970ba03555e9b17 (diff)
INTEGRATION: CWS ause017 (1.9.6); FILE MERGED
2005/01/21 16:52:43 hjs 1.9.6.1: #i33319# fixed globbing
Diffstat (limited to 'solenv/bin/packimages.pl')
-rwxr-xr-xsolenv/bin/packimages.pl13
1 files changed, 9 insertions, 4 deletions
diff --git a/solenv/bin/packimages.pl b/solenv/bin/packimages.pl
index 9f19eab20d38..cc371588049c 100755
--- a/solenv/bin/packimages.pl
+++ b/solenv/bin/packimages.pl
@@ -5,9 +5,9 @@ eval 'exec perl -wS $0 ${1+"$@"}'
#
# $RCSfile: packimages.pl,v $
#
-# $Revision: 1.9 $
+# $Revision: 1.10 $
#
-# last change: $Author: kz $ $Date: 2005-01-18 14:34:45 $
+# last change: $Author: rt $ $Date: 2005-01-28 16:05:32 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
@@ -94,7 +94,7 @@ my @custom_list;
( my $script_name = $0 ) =~ s/^.*\b(\w+)\.pl$/$1/;
my $script_rev;
-my $id_str = ' $Revision: 1.9 $ ';
+my $id_str = ' $Revision: 1.10 $ ';
$id_str =~ /Revision:\s+(\S+)\s+\$/
? ($script_rev = $1) : ($script_rev = "-");
@@ -168,8 +168,13 @@ sub parse_options
sub get_image_lists
{
my @image_lists;
+ my $glob_imagelist_path;
+
foreach ( @imagelist_path ) {
- push @image_lists, glob("$_/*.ilst");
+ $glob_imagelist_path = $_;
+ # cygwin perl
+ chomp( $glob_imagelist_path = qx{cygpath -u "$glob_imagelist_path"} ) if "$^O" eq "cygwin";
+ push @image_lists, glob("$glob_imagelist_path/*.ilst");
}
if ( !@image_lists ) {
print_error("can't find any image lists in '@imagelist_path'", 3);