Skip to content

Commit

Permalink
change setting for mac #3
Browse files Browse the repository at this point in the history
  • Loading branch information
matyaskopp committed Jun 12, 2024
1 parent 9496fa2 commit 6ba44e0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
8 changes: 5 additions & 3 deletions admin/env_refactored.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,14 @@ INSTALL_DOC=${INSTALL_BASE}/doc
RSS=${WWW}/tred/changelog.rss

# Basic paths
TRED_SVN=https://svn.ms.mff.cuni.cz/svn/TrEd
TRED_SVN=SVN:ERROR--https://svn.ms.mff.cuni.cz/svn/TrEd
TRED_SVN_REPO=${TRED_SVN}/trunk/tred_refactored
TRED_SVN_EXT=${TRED_SVN}/extensions
TREEX_PML_REPO=https://svn.ms.mff.cuni.cz/svn/perl_libs/trunk/distribution/Treex-PML
WIN32_DIST_REPO=https://svn.ms.mff.cuni.cz/svn/perl_libs/trunk/distribution/win32_build_script

TRED_FOLDER=tred_refactored
TRED_GIT_REPO=${GIT_DIR}/${TRED_FOLDER}
[email protected]:ufal/TrEd-extensions.git
# https://github.com/ufal/TrEd-extensions.git

Expand Down Expand Up @@ -106,7 +108,7 @@ CHANGELOG_TO_RSS=${ADMIN_DIR}/changelog2rss.pl


## MAC OS settings
MAC_RELEASER=[email protected]
MAC_RELEASER=mMcBair.local
MAC_TRED_INSTALLATION='~/tred_installation'
MAC_TRED_INSTALLATION_OLD='~/tred_installation_old'
MAC_GIT_DIR='~/TrEd'
MAC_GIT_DIR='~/work/TrEd'
2 changes: 1 addition & 1 deletion admin/mac_backup_previous.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
. env.sh
ssh $MAC_RELEASER <<EOF
rm -rf $MAC_TRED_INSTALLATION_OLD;
mv $MAC_TRED_INSTALLATION $MAC_TRED_INSTALLATION_OLD;
mv $MAC_TRED_INSTALLATION $MAC_TRED_INSTALLATION_OLD || echo "no previous release to backup";
EOF
4 changes: 2 additions & 2 deletions admin/mac_download_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

. env.sh

SVN_VERSION=`svn info . | grep 'Revision:' | sed -E 's/[^0-9]+//g'`
GIT_DATE=`git log -1 --date=format:"%Y%m%d" --format="%ad"|tr -d "\n"`

echo "Copying tred.dmg to local www"
scp $MAC_RELEASER:$MAC_TRED_INSTALLATION/tred.dmg "${TREDWWW}/tred/"

# keep history of released versions in subdir releases/osx
mkdir -p "${TREDWWW}/tred/releases/osx" 2>/dev/null
DMG_FILE="tred_2.${SVN_VERSION}.dmg"
DMG_FILE="tred_3.${GIT_DATE}.dmg"
cp "${TREDWWW}/tred/tred.dmg" "${TREDWWW}/tred/releases/osx/$DMG_FILE"
4 changes: 2 additions & 2 deletions admin/mac_prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ scp ${WWW}/tred/tred-current.tar.gz $MAC_RELEASER:$MAC_TRED_INSTALLATION
scp ${WWW}/tred/tred-dep-unix.tar.gz $MAC_RELEASER:$MAC_TRED_INSTALLATION
ssh $MAC_RELEASER <<EOF
chmod +x $MAC_TRED_INSTALLATION/install_tred.bash
cd TrEd && svn update || echo "Unable to update repository. Do it manually if needed!!!\nContinues without repository updated.\n"
cd ~/TrEd/trunk/osx_install/bin && ./unpack.sh && mv release-template.dmg ../scripts
cd ${MAC_GIT_DIR} && git pull || echo "Unable to update repository. Do it manually if needed!!!\nContinues without repository updated.\n"
cd ${MAC_GIT_DIR}/osx_install/bin && ./unpack.sh && mv release-template.dmg ../scripts
EOF
2 changes: 1 addition & 1 deletion admin/mac_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ ssh $MAC_RELEASER <<EOF
# echo "======== perl version"
# perlbrew info
# echo "========"
cd $MAC_SVN_DIR/trunk/osx_install/scripts && ./make-release.sh $SIGNATURE
cd ${MAC_GIT_DIR}/osx_install/scripts && ./make-release.sh $SIGNATURE
EOF

0 comments on commit 6ba44e0

Please sign in to comment.