You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ji...@apache.org on 2017/08/11 19:04:54 UTC
svn commit: r1804839 - /openoffice/devtools/release-scripts/prep-binaries.sh
Author: jim
Date: Fri Aug 11 19:04:54 2017
New Revision: 1804839
URL: http://svn.apache.org/viewvc?rev=1804839&view=rev
Log:
Use safer sed command and universal test format
Modified:
openoffice/devtools/release-scripts/prep-binaries.sh
Modified: openoffice/devtools/release-scripts/prep-binaries.sh
URL: http://svn.apache.org/viewvc/openoffice/devtools/release-scripts/prep-binaries.sh?rev=1804839&r1=1804838&r2=1804839&view=diff
==============================================================================
--- openoffice/devtools/release-scripts/prep-binaries.sh (original)
+++ openoffice/devtools/release-scripts/prep-binaries.sh Fri Aug 11 19:04:54 2017
@@ -10,7 +10,7 @@ fi
# TODO: Extend to cover other platforms; this is for Linux and macOS only.
PLATFORMS="unxlngx6.pro unxlngi6.pro unxmaccx.pro"
-PRODUCTS="Apache_OpenOffice Apache_OpenOffice_languagepack Apache_OpenOffice_SDK/"
+PRODUCTS="Apache_OpenOffice Apache_OpenOffice_languagepack Apache_OpenOffice_SDK"
DESTINATION="../binaries"
# For future use.
# FORMATS=`ls -1 main/instsetoo_native/$PLATFORM/$PRODUCT`
@@ -21,16 +21,16 @@ for PLATFORM in $PLATFORMS; do
if [ -d "main/instsetoo_native/$PLATFORM" ]; then
echo "Working on main/instsetoo_native/$PLATFORM"
for PRODUCT in $PRODUCTS; do
- if [ "$PLATFORM" == "unxmaccx.pro" ]; then
+ if [ "$PLATFORM" = "unxmaccx.pro" ]; then
FTYPE="dmg"
else
FTYPE="tar.gz"
fi
PACKAGES=`ls -1 main/instsetoo_native/$PLATFORM/$PRODUCT/*/install/*/*.$FTYPE` || echo "Warning: no packages found."
for PACKAGE in $PACKAGES; do
- LANGUAGE=`echo "$PACKAGE" | sed s!main/instsetoo_native/$PLATFORM/$PRODUCT/[^/]*/install/!! | sed s!_download.*!!`
+ LANGUAGE=`echo "$PACKAGE" | sed -e "s:main/instsetoo_native/$PLATFORM/$PRODUCT/[^/]*/install/::" | sed -e "s:/.*::"`
FILENAME=`basename $PACKAGE`
- if [ "$PRODUCT" == "Apache_OpenOffice_SDK" ]; then
+ if [ "$PRODUCT" = "Apache_OpenOffice_SDK" ]; then
OUTPUT_DIR="$DESTINATION/SDK/"
else
OUTPUT_DIR="$DESTINATION/$LANGUAGE/"