Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 713d7574a0
Fetching contributors…

Cannot retrieve contributors at this time

executable file 45 lines (29 sloc) 0.778 kB
#!/bin/bash
EXTRA_DIR=target/extra/webtrans/
TARGET_DIR=src/main/resources/
SUFFIX='_en.properties'
echo "Processing Messages";
for i in `ls $EXTRA_DIR*$SUFFIX`;
do
# remove EXTRA_DIR prefix
NEW_FILE=${i#$EXTRA_DIR}
# remove SUFFIX
NEW_FILE=${NEW_FILE%$SUFFIX}
NEW_FILE=$TARGET_DIR${NEW_FILE//./\/}.properties
echo "syncing $NEW_FILE";
mkdir -p `dirname $NEW_FILE`;
cp $i $NEW_FILE;
done
echo "Processing UiBinder Messages";
SUFFIX='.properties'
for i in `ls $EXTRA_DIR*UiBinderImplGenMessages$SUFFIX`;
do
# remove EXTRA_DIR prefix
NEW_FILE=${i#$EXTRA_DIR}
# remove SUFFIX
NEW_FILE=${NEW_FILE%$SUFFIX}
NEW_FILE=$TARGET_DIR${NEW_FILE//./\/}.properties
echo "syncing $NEW_FILE";
mkdir -p `dirname $NEW_FILE`;
cp $i $NEW_FILE;
done
Jump to Line
Something went wrong with that request. Please try again.