Skip to content

Commit

Permalink
Refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Oct 12, 2023
1 parent f0ee105 commit 596ba86
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions bin/upload_sourceforge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,6 @@

echo "RUNNING upload_sourceforge.sh......"

#
# Get the date in English
#
export oldTZ=$TZ
export oldTIME=$LC_TIME
export oldALL=$LC_ALL
export LC_ALL=en_US.UTF-8
export LC_TIME=en_US.UTF-8

#
# Report the date for
#
export TZ="America/Argentina/Buenos_Aires"
date=`date "+%e of %B of %Y at %H:%M:%S Buenos Aires, Argentina (%z UTC/GMT)" | awk '{sub(/^ */, "", $1); print}'`
git_hash=`git rev-parse HEAD`
export TZ=$oldTZ
export LC_TIME=$oldTIME
export LC_ALL=$oldALL

echo "DATE: ${date}"

. etc/functions.sh

if [[ "$(git rev-parse --abbrev-ref HEAD)" != "beta" ]]; then
Expand All @@ -50,6 +29,29 @@ echo "SSH KEY IS: ${SSH_KEY}"

get_kernel


#
# Get the date in English
#
export oldTZ=$TZ
export oldTIME=$LC_TIME
export oldALL=$LC_ALL
export LC_ALL=en_US.UTF-8
export LC_TIME=en_US.UTF-8

#
# Report the date for
#
export TZ="America/Argentina/Buenos_Aires"
date=`date "+%e of %B of %Y at %H:%M:%S Buenos Aires, Argentina (%z UTC/GMT)" | awk '{sub(/^ */, "", $1); print}'`
git_hash=`git rev-parse HEAD`
export TZ=$oldTZ
export LC_TIME=$oldTIME
export LC_ALL=$oldALL

echo "DATE: ${date}"


# Extract cmake/version.cmake into mrv2_VERSION
extract_version
echo "mrv2 VERSION=$mrv2_VERSION"
Expand Down

0 comments on commit 596ba86

Please sign in to comment.