Created
May 13, 2014 16:31
-
-
Save cargabsj175/33042448b8dcd1cd07d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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