xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
Commit 528f0fa973999513bfbb135aab41ae29ca5f392e

Update mxe-deploy script
Changes are necessary to work with new machine used to make the build
(OpenSSH port instead of cygwin64 ssh and a different path).
Author: xaizek
Author date (UTC): 2019-07-14 09:37
Committer name: xaizek
Committer date (UTC): 2019-07-14 19:04
Parent(s): 3332a552088c62600b901e32b72ddc39d05bf3e9
Signing key: 99DC5E4DB05F6BE2
Tree: a9e36c2f1ca899e6ee8029b3a2a7602a0717b049
File Lines added Lines deleted
scripts/mxe-deploy 15 12
File scripts/mxe-deploy changed (mode: 100755) (index 736d09f2c..3946628dd)
6 6 # the script is expected to be run from the root of the repository # the script is expected to be run from the root of the repository
7 7 # #
8 8 # configuration: # configuration:
9 # * REMOTE_NAME -- ssh-friendly remote Windows machine address
10 # * REMOTE_DIR -- absolute path on remote Windows machine
11 # * W32_DIR -- root directory where Win32 build happens
12 # * W64_DIR -- root directory where Win64 build happens
13 # * W32_BUILD_SCR -- script that builds Win32 release
14 # * W64_BUILD_SCR -- script that builds Win64 release
9 # * REMOTE_NAME -- ssh-friendly remote Windows machine address
10 # * REMOTE_DIR -- absolute path on remote Windows machine
11 # * REMOTE_WIN_DIR -- absolute path on remote Windows machine in Windows format
12 # * W32_DIR -- root directory where Win32 build happens
13 # * W64_DIR -- root directory where Win64 build happens
14 # * W32_BUILD_SCR -- script that builds Win32 release
15 # * W64_BUILD_SCR -- script that builds Win64 release
15 16
16 17 if [ $# -ne 1 ]; then if [ $# -ne 1 ]; then
17 18 echo "Usage: $(basename $0) version" echo "Usage: $(basename $0) version"
 
... ... fi
21 22 version="$1" version="$1"
22 23
23 24 REMOTE_NAME="${REMOTE_NAME:-win}" REMOTE_NAME="${REMOTE_NAME:-win}"
24 REMOTE_DIR="${REMOTE_DIR:-/cygdrive/c/dev/vifm}"
25 REMOTE_DIR="${REMOTE_DIR:-/c/repos/vifm}"
26 REMOTE_WIN_DIR="${REMOTE_WIN_DIR:-c:/repos/vifm}"
25 27 W32_DIR="${W32_DIR:-../vifm-mxe-w32/}" W32_DIR="${W32_DIR:-../vifm-mxe-w32/}"
26 28 W64_DIR="${W64_DIR:-../vifm-mxe-w64}" W64_DIR="${W64_DIR:-../vifm-mxe-w64}"
27 29 W32_BUILD_SCR="${W32_BUILD_SCR:-../build_release_x86}" W32_BUILD_SCR="${W32_BUILD_SCR:-../build_release_x86}"
 
... ... EOF
43 45
44 46 echo ::: COPYING EXECUTABLES TO THE REMOTE... ::: echo ::: COPYING EXECUTABLES TO THE REMOTE... :::
45 47
46 scp "$W32_DIR"/src/*.exe "$REMOTE_NAME:$REMOTE_DIR/w32/"
47 scp "$W64_DIR"/src/*.exe "$REMOTE_NAME:$REMOTE_DIR/w64/"
48 scp "$W32_DIR"/src/*.exe "$REMOTE_NAME:$REMOTE_WIN_DIR/w32/"
49 scp "$W64_DIR"/src/*.exe "$REMOTE_NAME:$REMOTE_WIN_DIR/w64/"
48 50
49 51 echo ::: PACKAGING SINGLE-EXECUTABLE VERSIONS... ::: echo ::: PACKAGING SINGLE-EXECUTABLE VERSIONS... :::
50 52
 
... ... EOF
72 74
73 75 echo ::: COPYING SINGLE-EXECUTABLE VERSIONS LOCALLY... ::: echo ::: COPYING SINGLE-EXECUTABLE VERSIONS LOCALLY... :::
74 76
75 scp "$REMOTE_NAME:$REMOTE_DIR/$w32.zip" "$REMOTE_NAME:$REMOTE_DIR/$w64.zip" .
77 scp "$REMOTE_NAME:$REMOTE_WIN_DIR/$w32.zip" \
78 "$REMOTE_NAME:$REMOTE_WIN_DIR/$w64.zip" .
76 79 chmod -x "$w32.zip" "$w64.zip" chmod -x "$w32.zip" "$w64.zip"
77 80
78 81 echo ::: VERIFYING PACKAGES... ::: echo ::: VERIFYING PACKAGES... :::
 
... ... echo ::: COPYING TESTS... :::
117 120 rm -r "$W32_DIR/tests/bin/build" "$W64_DIR/tests/bin/build" rm -r "$W32_DIR/tests/bin/build" "$W64_DIR/tests/bin/build"
118 121
119 122 scp -r "$W32_DIR/tests/bin" "$W32_DIR/tests/test-data" \ scp -r "$W32_DIR/tests/bin" "$W32_DIR/tests/test-data" \
120 "$REMOTE_NAME:$REMOTE_DIR/w32/"
123 "$REMOTE_NAME:$REMOTE_WIN_DIR/w32/"
121 124 scp -r "$W64_DIR/tests/bin" "$W64_DIR/tests/test-data" \ scp -r "$W64_DIR/tests/bin" "$W64_DIR/tests/test-data" \
122 "$REMOTE_NAME:$REMOTE_DIR/w64/"
125 "$REMOTE_NAME:$REMOTE_WIN_DIR/w64/"
123 126
124 127 echo ::: RUNNING TESTS... ::: echo ::: RUNNING TESTS... :::
125 128
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master