File scripts/deploy changed (mode: 100755) (index 940153b77..a6ecbe2d6) |
1 |
1 |
#!/bin/bash |
#!/bin/bash |
2 |
2 |
|
|
|
3 |
|
# Variables: |
|
4 |
|
# * VIFM_DATE_OVERRIDE -- date to use instead of "now" |
|
5 |
|
|
3 |
6 |
if [ "$#" -lt "1" -o "$#" -gt "2" ]; then |
if [ "$#" -lt "1" -o "$#" -gt "2" ]; then |
4 |
7 |
echo "Usage: $0 version [all|update|commit|archive]" |
echo "Usage: $0 version [all|update|commit|archive]" |
5 |
8 |
exit 1 |
exit 1 |
|
... |
... |
if [ $# -eq 2 ]; then |
13 |
16 |
target="$2" |
target="$2" |
14 |
17 |
fi |
fi |
15 |
18 |
|
|
|
19 |
|
function date() { |
|
20 |
|
if [ -z "$VIFM_DATE_OVERRIDE" ]; then |
|
21 |
|
command date "$@" |
|
22 |
|
else |
|
23 |
|
command date --date="$VIFM_DATE_OVERRIDE" "$@" |
|
24 |
|
fi |
|
25 |
|
} |
|
26 |
|
|
16 |
27 |
# this check is for me, since I'm always use vifm.exe from the repository |
# this check is for me, since I'm always use vifm.exe from the repository |
17 |
28 |
if [ "$OS" = Windows_NT ]; then |
if [ "$OS" = Windows_NT ]; then |
18 |
29 |
if [ "$target" = all -o "$target" = archive ]; then |
if [ "$target" = all -o "$target" = archive ]; then |