IDEMPIERE-1082 Migration script fails on OS X due to non standard sed flag

This commit is contained in:
Hesham S. Ahmed 2013-06-20 17:54:25 -05:00
parent e6aba812eb
commit 534f192b6d
1 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ do
ls $DIR/postgresql/*.sql | while read file; do ls $DIR/postgresql/*.sql | while read file; do
echo "SELECT '`basename "$file"`' AS Filename;" echo "SELECT '`basename "$file"`' AS Filename;"
echo echo
cat "$file" | dos2unix | sed 's/commit[ ]*;//I' cat "$file" | dos2unix | sed 's/[Cc][Oo][Mm][Mm][Ii][Tt][ ]*;//'
echo echo
echo echo
done done
@ -39,7 +39,7 @@ then
ls $DIRINI/../processes_post_migration/postgresql/*.sql | while read file; do ls $DIRINI/../processes_post_migration/postgresql/*.sql | while read file; do
echo "SELECT '`basename $file`' AS Filename;" echo "SELECT '`basename $file`' AS Filename;"
echo echo
cat $file | dos2unix | sed 's/commit[ ]*;//I' cat $file | dos2unix | sed 's/[Cc][Oo][Mm][Mm][Ii][Tt][ ]*;//'
echo echo
echo echo
done done
@ -49,7 +49,7 @@ then
ls $DIRINI/../my_processes_post_migration/postgresql/*.sql | while read file; do ls $DIRINI/../my_processes_post_migration/postgresql/*.sql | while read file; do
echo "SELECT '`basename "$file"`' AS Filename;" echo "SELECT '`basename "$file"`' AS Filename;"
echo echo
cat "$file" | dos2unix | sed 's/commit[ ]*;//I' cat "$file" | dos2unix | sed 's/[Cc][Oo][Mm][Mm][Ii][Tt][ ]*;//'
echo echo
echo echo
done done