rusefi/misc/jenkins/compile_other_versions/prepare_bundle.sh

23 lines
511 B
Bash

#!/bin/bash
BUNDLE_NAME="$1"
export INI_FILE_OVERRIDE="$2"
SCRIPT_NAME="prepare_bundle.sh"
echo "Entering $SCRIPT_NAME with ${BUNDLE_NAME}"
echo "RUSEFI_BUILD_FTP_USER=$RUSEFI_BUILD_FTP_USER"
TIMESTAMP=$(date "+%Y%m%d_%H%M%S")
if [ "$4" = "true" ]; then
export FOLDER="temp/rusefi.${3}.${BUNDLE_NAME}"
else
export FOLDER="temp/rusefi.snapshot.${BUNDLE_NAME}"
fi
export BUNDLE_FULL_NAME="rusefi_bundle_${BUNDLE_NAME}"
bash misc/jenkins/build_working_folder.sh "$3" "$4"
pwd
echo "exiting $SCRIPT_NAME"