Skip to content

Instantly share code, notes, and snippets.

@cargabsj175
Created May 13, 2014 16:31
Show Gist options
  • Save cargabsj175/33042448b8dcd1cd07d0 to your computer and use it in GitHub Desktop.
Save cargabsj175/33042448b8dcd1cd07d0 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Script de Migración de base de datos Adempiere del productivo (3.5.3a) a pruebas (3.7.0-release)
# debe ejecutarse dentro del subdirectorio 'migration' del código fuente de Adempiere
dir_list='353a-354a 354a-360lts 360lts-370lts 370lts-release'
workdir=$(pwd)
echo "database type? (available options: mysql, postgresql, oracle)."
read -e dbtype
for migrate in ${dir_list}; do
echo "Entering to ${migrate} directory..."
cd ${migrate}/${dbtype}
ant
echo "Done!"
cd ${workdir}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment