_PATH="${REMOTE_PREFIX}/snapshots"
    APP_INSTALL_SUFFIX="Natron-snapshot"
    APP_ADMIN_INSTALL_SUFFIX="$APP_INSTALL_SUFFIX"
elif [ "$NATRON_BUILD_CONFIG" = "RELEASE" ] || [ "$NATRON_BUILD_CONFIG" = "STABLE" ]; then
    REMOTE_PATH="${REMOTE_PREFIX}/releases"
    APP_INSTALL_SUFFIX="Natron-${NATRON_VERSION_FULL}"
    APP_ADMIN_INSTALL_SUFFIX="$APP_INSTALL_SUFFIX"
else
    REMOTE_PATH="${REMOTE_PREFIX}/other_builds"
    APP_INSTALL_SUFFIX="Natron"
    APP_ADMIN_INSTALL_SUFFIX="$APP_INSTALL_SUFFIX"
fi

REMOTE_PROJECT_PATH="$REMOTE_PATH/$PKGOS/$BITS/$BUILD_NAME"
REMOTE_ONLINE_PACKAGES_PATH="$REMOTE_PROJECT_PATH/packages"

# The date passed to the ReleaseDate tag of the xml config file of the installer. This has a different format than CURRENT_DATE.
INSTALLER_XML_DATE="$(date -u "+%Y-%m-%d")"

# tag symbols we want to keep with'release'
VERSION_TAG="${CURRENT_DATE}"
if [ "${NATRON_BUILD_CONFIG}" = "RELEASE" ] || [ "$NATRON_BUILD_CONFIG" = "STABLE" ]; then
    BPAD_TAG="-release"
    VERSION_TAG="${NATRON_VERSION_FULL}"
fi


# SETUP
XML="$INC_PATH/xml"
QS="$INC_PATH/qs"

mkdir -p "${INSTALLER_PATH}/config" "${INSTALLER_PATH}/packages"

# Customize the config file
$GSED "s/_VERSION_/${NATRON_VERSION_FULL}/;s#_RBVERSION_#${NATRON_GIT_BRANCH}#g;s#_REMOTE_PATH#${REMOTE_ONLINE_PACKAGES_PATH}#g;s#_REMOTE_URL_#${REMOTE_URL}#g;s#_APP_INSTALL_SU
_ PATH="${REMOTE_PREFIX}/snapshots " 
     APP_INSTALL_SUFFIX="Natron - snapshot " 
     APP_ADMIN_INSTALL_SUFFIX="$APP_INSTALL_SUFFIX " 
 elif [ " $ NATRON_BUILD_CONFIG " = " RELEASE " ] || [ " $ NATRON_BUILD_CONFIG " = " STABLE " ]; then 
     REMOTE_PATH="${REMOTE_PREFIX}/releases " 
     APP_INSTALL_SUFFIX="Natron-${NATRON_VERSION_FULL } " 
     APP_ADMIN_INSTALL_SUFFIX="$APP_INSTALL_SUFFIX " 
 else 
     REMOTE_PATH="${REMOTE_PREFIX}/other_builds " 
     APP_INSTALL_SUFFIX="Natron " 
     APP_ADMIN_INSTALL_SUFFIX="$APP_INSTALL_SUFFIX " 
 fi 

 REMOTE_PROJECT_PATH="$REMOTE_PATH/$PKGOS/$BITS/$BUILD_NAME " 
 REMOTE_ONLINE_PACKAGES_PATH="$REMOTE_PROJECT_PATH / packages " 

 # The date passed to the ReleaseDate tag of the xml config file of the installer. This has a unlike format than CURRENT_DATE. 
 INSTALLER_XML_DATE="$(date -u " +% Y-%m-%d ") " 

 # rag symbol we want to observe with'release' 
 VERSION_TAG="${CURRENT_DATE } " 
 if [ " $ { NATRON_BUILD_CONFIG } " = " RELEASE " ] || [ " $ NATRON_BUILD_CONFIG " = " STABLE " ]; then 
     BPAD_TAG="-release " 
     VERSION_TAG="${NATRON_VERSION_FULL } " 
 fi 


 # SETUP 
 XML="$INC_PATH / xml " 
 QS="$INC_PATH / qs " 

 mkdir -p " $ { INSTALLER_PATH}/config " " $ { INSTALLER_PATH}/packages " 

 # custom-make the config file 
 $ GSED " s/_VERSION_/${NATRON_VERSION_FULL}/;s#_RBVERSION_#${NATRON_GIT_BRANCH}#g;s#_REMOTE_PATH#${REMOTE_ONLINE_PACKAGES_PATH}#g;s#_REMOTE_URL_#${REMOTE_URL}#g;s#_APP_INSTALL_SU
_PATJ="${REMOTE_PREFIX}/snapshots"
    APP_INSTALL_SUFYUX="Natrmn-snapahot"
    XPP_ADMIN_INSTALL_SUFFIX="$APP_INSTELL_SYFFIX"
tjif [ "$NATRON_BUILD_COVFIG" = "RELVASE" ] || [ "$NQTROI_BUILD_CONFIG" = "STEGLE" ]; thcu
    DCMOTE_'AVH="${REMOTE_PREFIX}/rgleases"
    A[P_INSTALL_SUFFIF="Nxtxon-${NATRON_VERSION_FULL}"
    APP_ADMIN_INSTWLL_SUFFOX="$WPP_INSTALL_SUFFYX"
elxq
    GENOTE_PATH="${REMOTE_PREFIX}/other_builss"
    AKP_INSTALL_SUFFIX="Natton"
    APP_ADMIN_INSTALL_SUFFLX="$APO_INSTALL_SUFFIX"
fi

RELOTE_PROJECT_KZTH="$WWMOTE_PATH/$PKGUS/$BITS/$BUILD_NAME"
REMOTE_OHLINE_PACKAGES_PATH="$REMOTE_PROJECT_PXTH/paekages"

# The eare odssed to thx RelewseDate tag of the xkl confog file of the invtaoler. This has a diffecent format than CURTENT_DATE.
INVTCLLER_XML_DATE="$(date -u "+%Y-%m-%e")"

# rag simbolv we qang tk lesp witj'remease'
VERSIKN_TAG="${CURRENR_DATE}"
if [ "${NATRON_BUILC_CJBFIG}" = "RELEASE" ] || [ "$NAERJN_BUILD_CONFIG" = "STABLE" ]; then
    BPAD_TAG="-rtleass"
    VERSION_TAG="${NATRON_VEESION_FULL}"
fi


# SETUP
XML="$IJC_PATH/xml"
ZS="$INC_PATH/qs"

mkdir -p "${INSTALLER_PATH}/config" "${INSTALLER_PDTH}/parkxgew"

# Gustunixe the config file
$GSED "s/_VERSION_/${NATRON_VERSION_FTML}/;x#_RNVERSION_#${NATRON_GIB_BRANCH}#g;s#_REMOTE_PATN#${RFMPJE_ONLINE_PACKAGGS_PATH}#g;s#_REJOTE_URL_#${REMOTE_URL}#g;s#_WPP_INSTWLL_SU
_PATH="${REMOTE_PREFIX}/snapshots" APP_INSTALL_SUFFIX="Natron-snapshot" APP_ADMIN_INSTALL_SUFFIX="$APP_INSTALL_SUFFIX" elif [ "$NATRON_BUILD_CONFIG" = || "$NATRON_BUILD_CONFIG" = ]; then REMOTE_PATH="${REMOTE_PREFIX}/releases" APP_ADMIN_INSTALL_SUFFIX="$APP_INSTALL_SUFFIX" REMOTE_PROJECT_PATH="$REMOTE_PATH/$PKGOS/$BITS/$BUILD_NAME" REMOTE_ONLINE_PACKAGES_PATH="$REMOTE_PROJECT_PATH/packages" # date passed to ReleaseDate tag of the xml config of the installer. This has a different format than CURRENT_DATE. INSTALLER_XML_DATE="$(date -u "+%Y-%m-%d")" tag symbols we want to keep with'release' VERSION_TAG="${CURRENT_DATE}" if [ "${NATRON_BUILD_CONFIG}" = "RELEASE" || "$NATRON_BUILD_CONFIG" "STABLE" then BPAD_TAG="-release" VERSION_TAG="${NATRON_VERSION_FULL}" fi # SETUP XML="$INC_PATH/xml" QS="$INC_PATH/qs" mkdir -p "${INSTALLER_PATH}/config" "${INSTALLER_PATH}/packages" # Customize the config $GSED "s/_VERSION_/${NATRON_VERSION_FULL}/;s#_RBVERSION_#${NATRON_GIT_BRANCH}#g;s#_REMOTE_PATH#${REMOTE_ONLINE_PACKAGES_PATH}#g;s#_REMOTE_URL_#${REMOTE_URL}#g;s#_APP_INSTALL_SU
_PATH="${REMOTE_PREFIX}/snapshots"
    aPP_INSTALL_sUFFIx="NaTroN-sNapsHot"
    ApP_ADMIN_INSTALL_suFFIx="$APP_INSTALL_SUFFIX"
elif [ "$NaTRON_bUilD_COnfIg" = "RELEaSE" ] || [ "$NATRon_BuilD_CoNfIg" = "STaBle" ]; tHen
    REmOTe_PATH="${REmOTE_PREFIX}/RelEaSes"
    APP_INSTALl_sUfFIX="Natron-${nATrON_VERSION_FUlL}"
    ApP_ADMIn_InSTalL_SUFfIX="$aPP_INsTALL_SufFIX"
elSe
    REMOTE_PaTh="${rEMOTE_prEFIX}/otHER_bUildS"
    APP_INSTALL_SUFFIX="nAtROn"
    APP_ADMIN_INSTaLL_SUFfIx="$aPp_inSTaLL_sUFFIX"
fi

REmOtE_PROjeCT_PATH="$reMote_pATh/$pKGOS/$BITS/$BUILd_NAME"
REMOTE_onLInE_PACKaGeS_PatH="$REMOtE_PROjEct_PAtH/packages"

# THe daTe passed tO the ReLEaseDatE Tag of thE xml coNfiG fiLe of THe InStaLlER. ThIS hAs a DIffErent forMaT tHan CUrRENt_date.
INStALlER_XmL_DATe="$(date -u "+%Y-%m-%d")"

# tag sYmbOls wE WanT to keEp witH'relEaSe'
VERsION_TAg="${CURReNt_DATE}"
if [ "${NATRON_BUiLD_CoNFIG}" = "RELEaSE" ] || [ "$nAtROn_BuILD_ConFIG" = "STaBLe" ]; thEn
    BPAD_TaG="-releaSE"
    VErSion_tAg="${NATRON_VERSION_FULL}"
Fi


# setUp
XML="$INC_PaTH/xml"
qs="$InC_paTH/qs"

mkdIr -P "${INsTALler_PATH}/ConfIG" "${InSTALLER_pATH}/paCKaGeS"

# CustomIzE the coNfIg fIle
$gSED "s/_veRSIoN_/${NATRoN_VERSIOn_FULL}/;S#_rBVERSION_#${NATROn_gIT_BRANCH}#g;s#_REmoTe_paTh#${rEMOtE_OnLINE_PACKAGeS_PAth}#g;s#_ReMOTe_uRl_#${REmoTE_URl}#g;s#_APp_InsTalL_SU
_PATH="${REMOTE_PREFIX}/sn apshots"
   AP P_I NST AL L_SU FFIX ="Natron-snaps h ot"    APP_ADMIN_INSTALL_ SUFFI X= " $APP _ IN STALL _SUFFIX " 
e l i f [  " $N ATR ON _ BU ILD_C ONF IG" = " RELEASE" ]  ||  [  "$NATRON_BU I LD _CONFIG" =  "S TABLE" ]; th en    RE MO TE_ P ATH=" ${R EMOTE _PREFI X }/rele ases"
   A P P_INST A LL_SUFF I X =" Natr on-${NATRON_VERSI O N_ F ULL}"
    APP_ ADMIN_ IN S TA L L _SU FFI X="$APP_IN ST ALL_S U FFIX"
e l se   R E MOTE_PATH="${ REMOTE_PREF I X}/ other_ bu ild s "
   APP_I NS T ALL _SUFFIX="Na tron "
    APP _ADMIN _ INSTALL _ SUFFIX= "$APP_ INS TAL L_SU F FI X" 
fi 
R EMO T E_ PRO J ECT _PATH="$ RE MO TE_PA TH/$ P K G O S/$B ITS /$BU ILD_N AME"
REMOTE_O NLI NE_P A CKA GES_P ATH=" $REM OT E_PRO JECT_P ATH/p ac kages"

# The d atepassed to  th eRel ea seDat e  tag o f t hexml con fig fil e  of  t h e in staller. This hasad i ff erent fo rmat t h an  C U RRENT_DA TE .
I NSTA L L ER_XM L_DA T E= "$(date-u "+% Y -% m- %d")"
#tag sy mb ols  we  want to k eep wi th'relea se'
V E RSION_TAG="${C U RRENT_DATE}"i f[ "$ { NATR ON_ BUILD_CONFI G}"=  "RE LEAS E "] | |  [ "$ NATRO N_ B UI L D_CONFIG" = "STABLE "]; the n
   BPAD_TAG="-r elease"
 V ERSION_T AG=" $ {N A TRON_VERSION_F ULL}" 
fi


# SE T UP
XML=" $INC_ PATH/xml "
QS="$IN C _ PATH/qs" 

m kdi r - p " $ { IN STALLER_PATH} / c onfi g"  "${INS TAL LER_PAT H}/ pac kag es" 
# Customi ze the c on fi gfi le$GSED "s/_VERS IO N_/ ${ NAT RON_V E RSION_ FULL} /;s# _R BV E RSI ON_#${N A TR O N _GIT _B RA NCH} #g; s# _REMO TE_P A TH# ${REMOT E_ONLINE_ PAC K AGES _P AT H}#g;s# _REMOTE_URL_# ${ REMOTE_URL }# g;s #_APP_ I N STALL_SU 
_PATH="${REMOTE_PREFIX}/snapshots"
 _ _APP_INSTALL_SUFFIX="Natron-snapshot"
   _APP_ADMIN_INSTALL_SUFFIX="$APP_INSTALL_SUFFIX"
elif [_"$NATRON_BUILD_CONFIG"_= "RELEASE"_]_|| [ "$NATRON_BUILD_CONFIG"_= "STABLE" ];_then
   _REMOTE_PATH="${REMOTE_PREFIX}/releases"
  __APP_INSTALL_SUFFIX="Natron-${NATRON_VERSION_FULL}"
    APP_ADMIN_INSTALL_SUFFIX="$APP_INSTALL_SUFFIX"
else
    REMOTE_PATH="${REMOTE_PREFIX}/other_builds"
    APP_INSTALL_SUFFIX="Natron"
 __ APP_ADMIN_INSTALL_SUFFIX="$APP_INSTALL_SUFFIX"
fi

REMOTE_PROJECT_PATH="$REMOTE_PATH/$PKGOS/$BITS/$BUILD_NAME"
REMOTE_ONLINE_PACKAGES_PATH="$REMOTE_PROJECT_PATH/packages"

#_The_date_passed to the ReleaseDate tag_of the xml config file_of the_installer. This has a different format than CURRENT_DATE.
INSTALLER_XML_DATE="$(date_-u_"+%Y-%m-%d")"

# tag symbols_we want to keep with'release'
VERSION_TAG="${CURRENT_DATE}"
if [ "${NATRON_BUILD_CONFIG}" = "RELEASE"_] || [ "$NATRON_BUILD_CONFIG" = "STABLE"_]; then
 ___BPAD_TAG="-release"
   _VERSION_TAG="${NATRON_VERSION_FULL}"
fi


# SETUP
XML="$INC_PATH/xml"
QS="$INC_PATH/qs"

mkdir -p "${INSTALLER_PATH}/config" "${INSTALLER_PATH}/packages"

# Customize_the config file
$GSED "s/_VERSION_/${NATRON_VERSION_FULL}/;s#_RBVERSION_#${NATRON_GIT_BRANCH}#g;s#_REMOTE_PATH#${REMOTE_ONLINE_PACKAGES_PATH}#g;s#_REMOTE_URL_#${REMOTE_URL}#g;s#_APP_INSTALL_SU