Skip to content

Commit

Permalink
Update the filenames to extract pgAdmin4 version in build-pgadmin.sh.in
Browse files Browse the repository at this point in the history
  • Loading branch information
agarwal-kritika authored Apr 25, 2024
1 parent c93c03e commit a07bcdb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/build-pgadmin.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ TEMP_DIR=${SOURCE_DIR}/mac-temp

_setup_env() {
export PATH=${YARN_HOME}/bin:${NODEJS_HOME}:${PGBUILD}/bin:${PATH}:/opt/local/bin:
APP_RELEASE=`grep "^APP_RELEASE" ${SOURCE_DIR}/web/config.py | cut -d"=" -f2 | sed 's/ //g'`
APP_REVISION=`grep "^APP_REVISION" ${SOURCE_DIR}/web/config.py | cut -d"=" -f2 | sed 's/ //g'`
APP_NAME=`grep "^APP_NAME" ${SOURCE_DIR}/web/config.py | cut -d"=" -f2 | sed "s/'//g" | sed 's/^ //'`
APP_RELEASE=`grep "^APP_RELEASE" ${SOURCE_DIR}/web/version.py | cut -d"=" -f2 | sed 's/ //g'`
APP_REVISION=`grep "^APP_REVISION" ${SOURCE_DIR}/web/version.py | cut -d"=" -f2 | sed 's/ //g'`
APP_NAME=`grep "^APP_NAME" ${SOURCE_DIR}/web/branding.py | cut -d"=" -f2 | sed "s/'//g" | sed 's/^ //'`
APP_LONG_VERSION=${APP_RELEASE}.${APP_REVISION}
APP_SHORT_VERSION=`echo ${APP_LONG_VERSION} | cut -d . -f1,2`
APP_SUFFIX=`grep "^APP_SUFFIX" ${SOURCE_DIR}/web/config.py | cut -d"=" -f2 | sed 's/ //g' | sed "s/'//g"`
APP_SUFFIX=`grep "^APP_SUFFIX" ${SOURCE_DIR}/web/version.py | cut -d"=" -f2 | sed 's/ //g' | sed "s/'//g"`
if [ ! -z ${APP_SUFFIX} ]; then
APP_LONG_VERSION=${APP_LONG_VERSION}-${APP_SUFFIX}
fi
Expand Down

0 comments on commit a07bcdb

Please sign in to comment.