Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove whitespaces #86

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contrib/extract_translations/extract_translations.erl
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading