| File deploy changed (mode: 100755) (index b07ee766e..f3a6e1a25) |
| ... |
... |
fi |
| 7 |
7 |
|
|
| 8 |
8 |
target="all" |
target="all" |
| 9 |
9 |
|
|
| 10 |
|
if [ "$#" == "2" ]; then |
|
|
10 |
|
if [ $# -eq 2 ]; then |
| 11 |
11 |
target="$2" |
target="$2" |
| 12 |
12 |
fi |
fi |
| 13 |
13 |
|
|
| 14 |
14 |
# 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 |
| 15 |
|
if [ "$OS" == "Windows_NT" ]; then |
|
| 16 |
|
if [ "x$target" == "xall" -o "x$target" == "xarchive" ]; then |
|
|
15 |
|
if [ "$OS" = Windows_NT ]; then |
|
16 |
|
if [ "$target" = all -o "$target" = archive ]; then |
| 17 |
17 |
vifm_running="$(ps -W | grep vifm.exe)" |
vifm_running="$(ps -W | grep vifm.exe)" |
| 18 |
|
if [ "x$vifm_running" != "x" ]; then |
|
|
18 |
|
if [ -n "$vifm_running" ]; then |
| 19 |
19 |
echo "ERROR: vifm is running" |
echo "ERROR: vifm is running" |
| 20 |
20 |
exit 2 |
exit 2 |
| 21 |
21 |
fi |
fi |
| 22 |
22 |
fi |
fi |
| 23 |
23 |
fi |
fi |
| 24 |
24 |
|
|
| 25 |
|
if [ "x$target" == "xall" -o "x$target" == "xupdate" ]; then |
|
|
25 |
|
if [ "$target" = all -o "$target" = update ]; then |
| 26 |
26 |
echo "Updating version number..." |
echo "Updating version number..." |
| 27 |
27 |
|
|
| 28 |
28 |
# update version in ChangeLog |
# update version in ChangeLog |
| |
| ... |
... |
if [ "x$target" == "xall" -o "x$target" == "xupdate" ]; then |
| 31 |
31 |
# update version in configure script |
# update version in configure script |
| 32 |
32 |
sed -i "/AM_INIT_AUTOMAKE/s/, .*)/, $1)/" configure.ac |
sed -i "/AM_INIT_AUTOMAKE/s/, .*)/, $1)/" configure.ac |
| 33 |
33 |
|
|
| 34 |
|
if [ "x$OS" != "xWindows_NT" ]; then |
|
|
34 |
|
if [ "$OS" != Windows_NT ]; then |
| 35 |
35 |
# regenerate autotools files |
# regenerate autotools files |
| 36 |
36 |
autoreconf |
autoreconf |
| 37 |
37 |
# some voodoo magic to preserve old version of aclocal.m4 file |
# some voodoo magic to preserve old version of aclocal.m4 file |
| |
| ... |
... |
if [ "x$target" == "xall" -o "x$target" == "xupdate" ]; then |
| 66 |
66 |
sed -i "1s/\"[^\"]\\+\" \"[^\"]\\+\"\$/\"$(date '+%B %d, %Y')\" \"vifm $1\"/" data/*.1 |
sed -i "1s/\"[^\"]\\+\" \"[^\"]\\+\"\$/\"$(date '+%B %d, %Y')\" \"vifm $1\"/" data/*.1 |
| 67 |
67 |
fi |
fi |
| 68 |
68 |
|
|
| 69 |
|
if [ "x$target" == "xall" -o "x$target" == "xcommit" ]; then |
|
|
69 |
|
if [ "$target" = all -o "$target" = commit ]; then |
| 70 |
70 |
echo "Making version commit..." |
echo "Making version commit..." |
| 71 |
71 |
|
|
| 72 |
72 |
# try to mark commit with tag to figure out what to do: |
# try to mark commit with tag to figure out what to do: |
| |
| ... |
... |
if [ "x$target" == "xall" -o "x$target" == "xcommit" ]; then |
| 86 |
86 |
git tag --force "v$1" |
git tag --force "v$1" |
| 87 |
87 |
fi |
fi |
| 88 |
88 |
|
|
| 89 |
|
if [ "x$target" == "xall" -o "x$target" == "xarchive" ]; then |
|
|
89 |
|
if [ "$target" = all -o "$target" = archive ]; then |
| 90 |
90 |
echo "Building archive..." |
echo "Building archive..." |
| 91 |
91 |
|
|
| 92 |
92 |
# make archive |
# make archive |
| 93 |
|
if [ "$OS" != "Windows_NT" ]; then |
|
|
93 |
|
if [ "$OS" != Windows_NT ]; then |
| 94 |
94 |
archive_name="vifm-$1.tar.bz2" |
archive_name="vifm-$1.tar.bz2" |
| 95 |
95 |
git archive "v$1" --prefix "vifm-$1/" --format tar | bzip2 > "$archive_name" |
git archive "v$1" --prefix "vifm-$1/" --format tar | bzip2 > "$archive_name" |
| 96 |
96 |
else |
else |