Assuming you followed the instructions here [howto-prepare-for-installation-postgresql-Ubuntu-10-04-64bit] and you want to build the source on the server where you later run ADempiere.
# apt-get install ant mercurial
# export JAVA_HOME=/usr/lib/jvm/java-6-sun/
# mkdir -p /root/src/
# cd /root/src
In this example I chosed the sources maintained by Carlos Ruiz.
# hg clone https://hg.kenai.com/hg/adempiere361~adempiere361 adempiere361
# cd adempiere361/
Update your workingcopy to the current branch. At the time of writing it is globalqss_adempiere361
# hg update -r globalqss_adempiere361
# cd utils_dev
# ./RUN_build.sh
If everything goes right, your fresh compiled and packed dist files are here:
# cd /root/src/adempiere361/install/build/
Now you are ready to install! Just follow [howto-install-adempiere] then come back here...
If you follow the development you have to add the database changes to your installation. This is done by the so called migration scripts. They are located in the sourcetree not in your installation !!
# cd /root/src/adempiere361/migration
# cp postgresql.properties.template postgresql.properties
Edit: postgresql.properties and change the values matching your installation.
Then change to the directory which belongs to the current development and run the buildscript inside:
# cd 360lts.010-release/postgresql
# ant
Now go back to your installation and run the setup again:
# cd /opt/Adempiere
# ./RUN_silentsetup.sh
Home: doc-index
Home: howto-install-adempiere
Home: howto-prepare-for-installation-postgresql-Ubuntu-10-04-64bit