Add some modifications

This commit is contained in:
Bernat Brunet 2012-12-16 15:38:45 +01:00
parent 9c677b77ad
commit bf01386dd0
6 changed files with 61 additions and 10 deletions

View File

@ -1,2 +1,3 @@
python bootstrap.py
./bin/buildout -c buildout.cfg
create-symlinks.sh

View File

@ -23,8 +23,8 @@ parts =
[sources]
mr.developer = git https://github.com/angelnan/mr.developer.git egg=False
tryton = hg http://hg.tryton.org/tryton/ full-path=tryton egg=False
trytond = hg http://hg.tryton.org/trytond/ full-path=trytond egg=False
tryton = hg http://hg.tryton.org/tryton/ full-path=../tryton egg=False
trytond = hg http://hg.tryton.org/trytond/ full-path=../trytond egg=False
[supervisor]

49
create-symlinks.sh Executable file
View File

@ -0,0 +1,49 @@
#!/bin/bash
# dst=$1
# src=$2
dst=trytond/trytond/modules
src=../../../modules
if [[ -z "$dst" || -z "$src" ]]; then
echo "Use create-symlinks.sh <destination_directory> <source_path>"
echo
echo "directory should point to the addons directory of the server"
exit 1
fi
# Remove all symlinks in $dst directory. This way we ensure we
# do not remove modules created there by mistake.
modules=$(find $dst -type l)
if [ "$modules" != "" ]; then
rm -f $modules
fi
remaining=$(ls $dst | wc -l)
if [ $remaining != '0' ]; then
echo "There are still files in $dst directory after removing all symlinks."
echo "Please ensure there are no files or directories there."
echo "Files and directories found:"
ls $dst
exit 1
fi
pushd $dst
echo $(pwd)
# We add sort because we want 'custom-modules' to be processed first. This way it's
# possible to override modules in addons with new modules with the same name.
list=$(find $src -iname "tryton.cfg" | sort | awk '{system("dirname "$dst)}')
for i in $list; do
if [ -d "$i" ]; then
ln -s "$i" "."
else
echo "'$i' doesn't exist"
fi
done
popd

1
local.cfg Symbolic link
View File

@ -0,0 +1 @@
../local.cfg

View File

@ -5,12 +5,12 @@ auto-checkout += *
account_code_digits = hg https://bitbucket.org/albertnan/account_code_digits egg=False
account_invoice_cancel = git https://bitbucket.org/albertnan/account_invoice_cancel.git egg=False
account_invoice_consecutive = git https://bitbucket.org/albertnan/account_invoice_consecutive.git egg=False
account_invoice_prevent_duplicates= git https://bitbucket.org/albertnan/account_invoice_prevent_duplicates.git egg=False
account_invoice_taxes_required= git https://bitbucket.org/albertnan/account_invoice_taxes_required.git egg=False
account_move_party_required= git https://bitbucket.org/albertnan/account_move_party_required.git egg=False
account_parent_code = hg https://bitbucket.org/albertnan/account_parent_code egg=False
account_payment_days= git https://bitbucket.org/albertnan/account_payment_days.git egg=False
account_search_with_dot= git https://bitbucket.org/albertnan/account_search_with_dot.git egg=False
account_invoice_prevent_duplicates = git https://bitbucket.org/albertnan/account_invoice_prevent_duplicates.git egg=False
account_invoice_taxes_required = git https://bitbucket.org/albertnan/account_invoice_taxes_required.git egg=False
account_move_party_required = git https://bitbucket.org/albertnan/account_move_party_required.git egg=False
account_parent_code = hg ssh://hg@bitbucket.org/albertnan/account_parent_code egg=False
account_payment_days = git https://bitbucket.org/albertnan/account_payment_days.git egg=False
account_search_with_dot = git https://bitbucket.org/albertnan/account_search_with_dot.git egg=False
jasper_reports = hg https://bitbucket.org/albertnan/jasper_reports egg=False
product_kit = hg https://bitbucket.org/angelnan/product_kit egg=False
sale_kit = hg https://bitbucket.org/angelnan/sale_kit egg=False

View File

@ -2,5 +2,5 @@
auto-checkout += *
[sources]
account_invoice_discount = https://bitbucket.org/ukoma/account_invoice_discount egg=False
party_bank = https://bitbucket.org/ukoma/party_bank egg=False
account_invoice_discount = hg ssh://hg@bitbucket.org/ukoma/account_invoice_discount egg=False
party_bank = hg ssh://hg@bitbucket.org/ukoma/party_bank egg=False