Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 1.68 KB

README.md

File metadata and controls

59 lines (42 loc) · 1.68 KB

babelfish_distribution

Steps for building Babelfish distribution.

export EXTTAG=BABEL_1_0_0
export EXTREPO=babelfish_extensions
export ENGREPO=postgresql_modified_for_babelfish
export ENGTAG=BABEL_1_0_0__PG_13_4
export EXTDIR=${EXTREPO}-${EXTTAG}
export ENGDIR=${ENGREPO}-${ENGTAG}

cd test
curl -L https://github.com/babelfish-for-postgresql/babelfish_extensions/archive/refs/tags/BABEL_1_0_0.zip --output BABEL_1_0_0.zip
curl -L https://github.com/babelfish-for-postgresql/postgresql_modified_for_babelfish/archive/refs/tags/BABEL_1_0_0__PG_13_4.zip --output BABEL_1_0_0__PG_13_4.zip

unzip BABEL_1_0_0__PG_13_4.zip
unzip BABEL_1_0_0.zip

mv ${EXTDIR}/contrib/* ${EXTDIR}/

# [[ -d  ${EXTDIR}/contrib && ! -s ${EXTDIR}/contrib ]] && rm -fr ${EXTDIR}/contrib 
rm -fr ${EXTDIR}/contrib 
mv ${EXTDIR}/** ${ENGDIR}/contrib

# Extract the Release Notes from the website
curl https://raw.githubusercontent.com/babelfish-for-postgresql/babelfish_project_website/a9bbeb3aeb2305914ae802806df21d7b7fbd1ec9/_releases/release_notes_1.0.0.md | sed '/---/,/---/d' > ${ENGDIR}/RELEASE_NOTES.md
  1. Apply the patch

  2. Compress the modified engine:

(
    cd postgresql_modified_for_babelfish-BABEL_1_0_0__PG_13_4 ;
    zip -r ../BABEL_1_0_0__PG_13_4.zip * ;
    tar cfz ../BABEL_1_0_0__PG_13_4.tar.gz ** 
)

Other mechanisms

git archive --format=tar \
    [email protected]:babelfish-for-postgresql/postgresql_modified_for_babelfish.git \
    main  | tar -xf -
git remote add engine [email protected]:babelfish-for-postgresql/postgresql_modified_for_babelfish.git
git remote add extensions [email protected]:babelfish-for-postgresql/babelfish_extensions.git
git checkout tag file