2016-02-18 23:33:06 +03:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Midnight Commander - deployment script for Travis CI
|
|
|
|
#
|
|
|
|
# Copyright (C) 2016
|
|
|
|
# The Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# Written by:
|
|
|
|
# Yury V. Zaytsev <yury@shurup.com>, 2016
|
|
|
|
#
|
|
|
|
# This file is part of the Midnight Commander.
|
|
|
|
#
|
|
|
|
# The Midnight Commander is free software: you can redistribute it
|
|
|
|
# and/or modify it under the terms of the GNU General Public License as
|
|
|
|
# published by the Free Software Foundation, either version 3 of the License,
|
|
|
|
# or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# The Midnight Commander is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
2017-12-03 11:30:12 +03:00
|
|
|
GLOBAL_VERSION="6.5.7"
|
2016-02-18 23:52:10 +03:00
|
|
|
GLOBAL_URL="http://ftp.gnu.org/pub/gnu/global/global-${GLOBAL_VERSION}.tar.gz"
|
|
|
|
HTAGSFIX_URL="https://github.com/mooffie/htagsfix/raw/master/htagsfix"
|
2016-02-18 23:33:06 +03:00
|
|
|
|
2016-02-21 22:21:57 +03:00
|
|
|
mkdir .global && pushd .global # ignored by GLOBAL's indexer
|
2016-02-18 23:52:10 +03:00
|
|
|
|
|
|
|
wget ${GLOBAL_URL}
|
|
|
|
tar zxvf global-${GLOBAL_VERSION}.tar.gz > /dev/null 2>&1
|
|
|
|
|
|
|
|
pushd global-${GLOBAL_VERSION}
|
2017-12-03 01:18:39 +03:00
|
|
|
./configure --prefix=$(pwd)/install > /dev/null 2>&1
|
|
|
|
make > /dev/null 2>&1
|
|
|
|
make install > /dev/null 2>&1
|
2016-02-18 23:52:10 +03:00
|
|
|
popd
|
|
|
|
|
|
|
|
export PATH="$(pwd)/global-${GLOBAL_VERSION}/install/bin:$PATH"
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
gtags -v > /dev/null 2>&1
|
|
|
|
|
2016-02-21 22:21:57 +03:00
|
|
|
htags --suggest -t "Welcome to the Midnight Commander source tour!" > /dev/null 2>&1
|
2016-02-18 23:52:10 +03:00
|
|
|
|
|
|
|
wget --no-check-certificate ${HTAGSFIX_URL}
|
|
|
|
|
|
|
|
ruby htagsfix > /dev/null 2>&1
|
|
|
|
|
|
|
|
cd HTML
|
2016-02-18 23:33:06 +03:00
|
|
|
|
|
|
|
touch .nojekyll
|
2016-02-18 23:52:10 +03:00
|
|
|
echo "source.midnight-commander.org" > CNAME
|
2016-02-18 23:33:06 +03:00
|
|
|
|
|
|
|
git init
|
|
|
|
|
|
|
|
git config user.name "Travis CI"
|
|
|
|
git config user.email "travis@midnight-commander.org"
|
|
|
|
|
2016-02-18 23:52:10 +03:00
|
|
|
git add . > /dev/null 2>&1
|
|
|
|
git commit -m "Deploy to GitHub Pages" > /dev/null 2>&1
|
2016-02-18 23:33:06 +03:00
|
|
|
|
|
|
|
git push --force --quiet git@github.com:MidnightCommander/source.git master:gh-pages > /dev/null 2>&1
|
|
|
|
|
|
|
|
exit 0
|