[Libreoffice-commits] .: download

Kalman "" Szalai kami911 at kemper.freedesktop.org
Sun May 8 10:32:26 PDT 2011


 download |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ed19187707feedc319114c2ac345ef3021c92bcc
Author: Kalman Szalai - KAMI <kami911 at gmail.com>
Date:   Sun May 8 19:30:24 2011 +0200

    When downloading extensions to src, cut is provided with wrong option switches
    
    I used long switches for cut and your (Windows??) box does not adore about it.
    
    http://comments.gmane.org/gmane.comp.documentfoundation.libreoffice.devel/10214

diff --git a/download b/download
index 378b744..603eee0 100755
--- a/download
+++ b/download
@@ -266,7 +266,7 @@ done
 echo "Copy extensions to their location ..."
 for pack in $BARCODE_EXTENSION_PACK $DIAGRAM_EXTENSION_PACK $VALIDATOR_EXTENSION_PACK $WATCH_WINDOW_EXTENSION_PACK $NUMBERTEXT_EXTENSION_PACK $HUNART_EXTENSION_PACK $TYPO_EXTENSION_PACK $GOOGLE_DOCS_EXTENSION_PACK $LIGHTPROOF_HU_PACK $LIGHTPROOF_EN_US_PACK $SUNTEMPLATES_DE_PACK $SUNTEMPLATES_EN_US_PACK $SUNTEMPLATES_ES_PACK $SUNTEMPLATES_FR_PACK $SUNTEMPLATES_HU_PACK $SUNTEMPLATES_IT_PACK; do
     check_file $TARFILE_LOCATION/$pack
-    packfilename=`echo "$pack" | cut --only-delimited --delimiter=- --fields=2- | cut --delimiter=_ --fields=1`
+    packfilename=`echo "$pack" | cut -f 2- -s -d - | cut -f 1 -d _`
     echo "Copy extension: '$pack' as '$packfilename.oxt' ..."
     mkdir -p $SRC_ROOT/extras/source/extensions/ || exit 1
     cp $TARFILE_LOCATION/$pack $SRC_ROOT/extras/source/extensions/$packfilename.oxt || exit 1


More information about the Libreoffice-commits mailing list