diff --git a/scripts/remove_control_m.sh b/scripts/remove_control_m.sh deleted file mode 100755 index 4f5b213c1b..0000000000 --- a/scripts/remove_control_m.sh +++ /dev/null @@ -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 " - 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 diff --git a/scripts/revision-info b/scripts/revision-info deleted file mode 100755 index d81a5a30b2..0000000000 --- a/scripts/revision-info +++ /dev/null @@ -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 -mv revision-info.php.tmp revision-info.php