From af8160af88e7e68592a958aadead78d850b7e1c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 4 Feb 2014 19:54:45 +0100 Subject: [PATCH] Also get rid of this. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- prop-set.sh | 45 ----------------------------------------- reset-svn.sh | 10 --------- setup-repos.sh | 55 -------------------------------------------------- 3 files changed, 110 deletions(-) delete mode 100755 prop-set.sh delete mode 100755 reset-svn.sh delete mode 100755 setup-repos.sh diff --git a/prop-set.sh b/prop-set.sh deleted file mode 100755 index 8a3c22e9..00000000 --- a/prop-set.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -# Keywords -find -type f -name "*.php" -exec svn propset svn:keywords "Author Id Revision HeadURL Date Tag" {} \; -find -type f -name "*.xml" -exec svn propset svn:keywords "Author Id Revision HeadURL Date Tag" {} \; -find -type f -name "*.ctp" -exec svn propset svn:keywords "Author Id Revision HeadURL Date Tag" {} \; - -# MIME type -find -type f -name "*.php" -exec svn propset svn:mime-type "text/plain" {} \; -find -type f -name "*.ctp" -exec svn propset svn:mime-type "text/plain" {} \; -find -type f -name "*.jpg" -exec svn propset svn:mime-type "image/jpeg" {} \; -find -type f -name "*.png" -exec svn propset svn:mime-type "image/png" {} \; -find -type f -name "*.gif" -exec svn propset svn:mime-type "image/gif" {} \; -find -type f -name "*.ico" -exec svn propset svn:mime-type "image/x-ico" {} \; -find -type f -name "*.html" -exec svn propset svn:mime-type "text/plain" {} \; -find -type f -name "*.xml" -exec svn propset svn:mime-type "text/xml" {} \; -find -type f -name "*.txt" -exec svn propset svn:mime-type "text/plain" {} \; -find -type f -name "*.lng" -exec svn propset svn:mime-type "text/plain" {} \; - -# .htaccess files -find -type f -name .htaccess -exec svn propdel svn:keywords {} \; -find -type f -name .htaccess -exec svn propdel svn:executable {} \; -find -type f -name .htaccess -exec svn propset svn:mime-type "text/plain" {} \; - -# eol-style -find -type f -name "*.php" -exec svn propset svn:eol-style "native" {} \; -find -type f -name "*.ctp" -exec svn propset svn:eol-style "native" {} \; -find -type f -name "*.html" -exec svn propset svn:eol-style "native" {} \; -find -type f -name "*.xml" -exec svn propset svn:eol-style "native" {} \; -find -type f -name "*.txt" -exec svn propset svn:eol-style "native" {} \; -find -type f -name "*.lng" -exec svn propset svn:eol-style "native" {} \; - -# Shell scripts can be executable -echo "$0: propset svn:executable on *.sh" -find -type f -name "*.sh" | xargs svn propset svn:executable 2>/dev/null - -# These files don't need a executable right (chmod +x) -DEL_EXECUTE="java html lng jpg png gif ico txt xml php nsi jar js rss" -for entry in ${DEL_EXECUTE}; do - echo "$0: propdel svn:executable on *.${entry}" - find -type f -name "*.${entry}" -exec svn propdel svn:executable {} \; 2>/dev/null -done - -# Revert third-party classes -svn --recursive revert inc/classes/third_party/ diff --git a/reset-svn.sh b/reset-svn.sh deleted file mode 100755 index 9498d243..00000000 --- a/reset-svn.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -svn propset svn:externals "inc http://ship-simu.org/repos/core/trunk/inc/ -templates http://ship-simu.org/repos/core/trunk/templates/" . - -svn propset svn:externals "`cat ../../core/trunk/application-external.txt`" application/ - -svn up - -sh ../../core/trunk/prop-set.sh diff --git a/setup-repos.sh b/setup-repos.sh deleted file mode 100755 index 60d1fb6b..00000000 --- a/setup-repos.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/sh -# A little helper script of mine to setup a new development check-out directory. -# This script should be called where you want to create the repository and 'core' -# must be in the same directory. This script is public domain, if it blows up -# your washing maschine or your refrigerator stops working, this script is maybe -# not responsible for this, ask your trusted electrican. Use it on your own risk. - -if test "${1}" == ""; then - echo "Usage: ${0} Setup given repository locally." - exit -elif test -e "${1}/.svn/"; then - echo "${0}: Repository ${1} is possibly setup! Aborting..." - exit -fi - -echo "${0}: Checking out ${1} ..." -svn co "svn+ssh://www.mxchange.org/var/www/svn-repos/${1}/" || exit 255 -cd "${1}" -echo "${0}: Creating base directories ..." -svn mkdir branches tags trunk || exit 255 -cd trunk -echo "${0}: Updating skeleton ..." -svn up ../../skel/ || exit 255 -echo "${0}: Importing skeleton repository ..." -svn export --force ../../skel/trunk/ . || exit 255 -svn add * || exit 255 -if test "${1}" != "admin"; then - echo "${0}: Adding directory application/${1} ..." - svn mkdir application/${1} || exit 255 -else - echo "${0}: --- Not creating directory application/${1}. ---" -fi -echo "${0}: Linking to external 'core' repository ..." -svn propset svn:externals -F ../../core/trunk/svn-externals.txt . || exit 255 -if (test "${1}" != "admin" && test "${1}" != "install"); then - cd application/ - if test "${1}" != "qa"; then - svn propset svn:externals -F ../../../core/trunk/application-external.txt . || exit 255 - else - svn propset svn:externals "admin http://www.ship-simu.org/repos/admin/trunk/application/admin/ -install http://www.ship-simu.org/repos/install/trunk/application/install/" . || exit 255 - fi - cd .. # trunk -else - echo "${0}: --- Not setting admin/install external source. ---" -fi -cd .. # root -echo "${0}: Running commit ..." -svn commit -m "Initial import with linked core from skeleton" || exit 255 -echo "${0}: Updating ..." -svn up -echo "${0}: Exporting repositiory ..." -svn export --force trunk/ /var/www/htdocs/${1} -cd .. # start -echo "${0}: All done." -- 2.39.5