Skip to content

Commit

Permalink
Remove whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdaterm committed Jul 26, 2013
1 parent 06bb10a commit bbcc19c
Show file tree
Hide file tree
Showing 50 changed files with 348 additions and 349 deletions.
2 changes: 1 addition & 1 deletion contrib/extract_translations/extract_translations.erl
Expand Up @@ -128,7 +128,7 @@ parse_form(Dir, File, Form, Used) ->
_ ->
ok
end.

process_string(_Dir, _File, _Line, "", _Used) ->
ok;

Expand Down
14 changes: 7 additions & 7 deletions contrib/extract_translations/prepare-translation.sh
Expand Up @@ -25,12 +25,12 @@ prepare_dirs ()
MSGS_DIR=$EJA_DIR/priv/msgs

if !([[ -n $EJA_DIR ]])
then
then
echo "ejabberd dir does not exist: $EJA_DIR"
fi

if !([[ -x $EXTRACT_BEAM ]])
then
then
sh -c "cd $EXTRACT_DIR; $ERL -compile $EXTRACT_ERL"
fi
}
Expand All @@ -48,7 +48,7 @@ extract_lang ()
cd $SRC_DIR
$ERL -pa $EXTRACT_DIR -noinput -noshell -s extract_translations -s init stop -extra . $MSGS_PATH >$MSGS_PATH.new
sed -e 's/^% \.\//% /g;' $MSGS_PATH.new > $MSGS_PATH.new2
mv $MSGS_PATH.new2 $MSGS_PATH.new
mv $MSGS_PATH.new2 $MSGS_PATH.new

echo -n " old..."
$ERL -pa $EXTRACT_DIR -noinput -noshell -s extract_translations -s init stop -extra -unused . $MSGS_PATH >$MSGS_PATH.unused
Expand Down Expand Up @@ -126,7 +126,7 @@ find_unused_full ()

cp $DELFILE2 $DELFILE1
STRING=`head -1 $DELFILE1`
until [[ $STRING == ENDFILEMARK ]]; do
until [[ $STRING == ENDFILEMARK ]]; do
cp $DELFILE2 $DELFILE1
cp $DATFILE2 $DATFILE1

Expand Down Expand Up @@ -202,7 +202,7 @@ extract_lang_popot2po ()
POT_PATH=$MSGS_DIR/$PROJECT.pot

msgmerge $PO_PATH $POT_PATH >$PO_PATH.translate 2>/dev/null
mv $PO_PATH.translate $PO_PATH
mv $PO_PATH.translate $PO_PATH
}

extract_lang_po2msg ()
Expand Down Expand Up @@ -240,7 +240,7 @@ extract_lang_po2msg ()
extract_lang_updateall ()
{
echo "Generating POT"
extract_lang_src2pot
extract_lang_src2pot

cd $MSGS_DIR
echo ""
Expand Down Expand Up @@ -335,7 +335,7 @@ while [ $# -ne 0 ] ; do
;;
-src2pot)
prepare_dirs
extract_lang_src2pot
extract_lang_src2pot
;;
-po2msg)
LANG_CODE=$1
Expand Down
8 changes: 4 additions & 4 deletions examples/mtr/ejabberd-netbsd.sh
Expand Up @@ -16,7 +16,7 @@ fi


echo '2. install crypt_drv.so'

if [ ! -d /usr/pkg/lib/erlang/lib/crypto-1.1.2.1/priv/lib ] ; then
mkdir -p /usr/pkg/lib/erlang/lib/crypto-1.1.2.1/priv/lib
fi
Expand All @@ -41,18 +41,18 @@ cc -shared \
cp ../priv/obj/i386--netbsdelf/elibcrypto.so \
/usr/pkg/lib/erlang/lib/crypto-1.1.2.1/priv/lib
fi


echo '4. compile and install ssl_esock'

if [ ! -f /usr/pkg/lib/erlang/lib/ssl-2.3.5/priv/bin/ssl_esock ]; then
cd /usr/pkg/lib/erlang/lib/ssl-2.3.5/priv/obj/
make
fi


echo '5. initial ejabberd configuration'

cd /usr/pkg/jabber/ejabberd/src
./configure

Expand Down

0 comments on commit bbcc19c

Please sign in to comment.