Merge branch 'QA_4_6'

This commit is contained in:
Michal Čihař 2016-10-03 19:28:01 +02:00
commit d24848400d
2 changed files with 0 additions and 58 deletions

View File

@ -1,21 +0,0 @@
#!/bin/sh
#
#
# Script to remove ^M from files for DOS <-> UNIX conversions
#
if [ $# != 1 ]
then
echo "Usage: remove_control_m.sh <extension of files>"
echo ""
echo "Example: remove_control_m.sh php3"
exit
fi
for i in `find . -name "*.$1"`
do
echo $i
tr -d '\015' < $i > ${i}.new
rm $i
mv ${i}.new $i
done

View File

@ -1,37 +0,0 @@
#!/bin/sh
#
# Generates revision-info.php file which is used by demo server
#
set -e
remote_url=`git remote show -n origin | grep 'Fetch' | sed 's/.*URL: //'`
ref=$(git symbolic-ref -q HEAD || git name-rev --name-only HEAD 2>/dev/null)
ref=${ref#refs/heads/}
rev=`git describe --always`
fullrev=`git log -1 | head -n 1 | awk '{print $2}'`
if [ "$remote_url" = "git://github.com/phpmyadmin/phpmyadmin.git" ] \
|| [ "$remote_url" = "https://github.com/phpmyadmin/phpmyadmin" ]; then
repobase="https://github.com/phpmyadmin/phpmyadmin/commit/"
repobranchbase="https://github.com/phpmyadmin/phpmyadmin/tree/"
reponame=''
elif echo "$remote_url" | grep -q "git://github.com/" ; then
repobase=`echo $remote_url | sed 's@git://github.com/\(.*\)/\(.*\).git@https://github.com/\1/\2/commit/@'`
repobranchbase=`echo $remote_url | sed 's@git://github.com/\(.*\)/\(.*\).git@https://github.com/\1/\2/tree/@'`
reponame=`echo $remote_url | sed 's@git://github.com/\(.*\)/\(.*\).git@\1@'`
else
repobase=`echo $remote_url | sed 's@git://repo.or.cz@https://repo.or.cz/w@'`/commitdiff/
repobranchbase=`echo $remote_url | sed 's@git://repo.or.cz@https://repo.or.cz/w@'`/shortlog/refs/heads/
reponame=''
fi
cat > revision-info.php.tmp <<EOT
<?php
\$revision = '$rev';
\$fullrevision = '$fullrev';
\$repobase = '$repobase';
\$reponame = '$reponame';
\$repobranchbase = '$repobranchbase';
\$branch = '$ref';
?>
EOT
mv revision-info.php.tmp revision-info.php