Source

bookmaak / util / js-build

Full commit
#!/bin/sh
#
#  Copyright (C) 2011
#    Mario Gastegger <mario DOT gastegger AT gmx DOT net>, uniqx
#    Metalab, 1010 Vienna, Austria
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU Affero General Public License as published
#  by the Free Software Foundation, either version 3 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU Affero General Public License for more details.
#
#  You should have received a copy of the GNU Affero General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

mkdir -p build/javascript/

echo "" > build/javascript/bookmaak.js

add(){

  echo "add $1"

  echo ""         >> build/javascript/bookmaak.js
  echo ""         >> build/javascript/bookmaak.js
  echo "/* $1 */" >> build/javascript/bookmaak.js
  echo ""         >> build/javascript/bookmaak.js
  cat $1          >> build/javascript/bookmaak.js

}

echo '## js libs ##'

add lib/jquery-1.7.1.js

add lib/pidCrypt_uncompressed/pidcrypt.js
add lib/pidCrypt_uncompressed/pidcrypt_util.js
add lib/pidCrypt_uncompressed/asn1.js
add lib/pidCrypt_uncompressed/prng4.js
add lib/pidCrypt_uncompressed/rng.js
add lib/pidCrypt_uncompressed/md5.js
add lib/pidCrypt_uncompressed/aes_core.js
add lib/pidCrypt_uncompressed/aes_cbc.js
add lib/pidCrypt_uncompressed/rsa.js
add lib/pidCrypt_uncompressed/jsbn.js
add lib/pidCrypt_uncompressed/string_extend.js
add lib/pidCrypt_uncompressed/oids.js

echo '## js source ##'

add src/main/client/namespaces.js
add src/main/client/constants.js

add src/main/client/domain/Bookmark.js
add src/main/client/domain/File.js

add src/main/client/util/FTS.js
add src/main/client/util/Settings.js
add src/main/client/util/types.js
add src/main/client/util/validation.js

add src/main/client/dao/BookmarkDao.js

add src/main/client/crypto/CryptoUtils.js
add src/main/client/crypto/BookmarkCrypto.js
add src/main/client/crypto/UserCrypto.js

add src/main/client/comm/Communicator.js

add src/main/client/controller/Controller.js

add src/main/client/ui/index_presenter.js
add src/main/client/ui/connect_presenter.js
add src/main/client/ui/login_presenter.js
add src/main/client/ui/register_presenter.js
add src/main/client/ui/manage_account_presenter.js
add src/main/client/ui/manage_bookmarks_presenter.js