From 86a02b4df98ac5e4a6603a7cea4c9075ec1999a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 12 Feb 2011 23:44:08 +0000 Subject: [PATCH] Helper script added, externals are now no longer with www. (because it is really out-dated) --- application-external.txt | 6 +++--- prop-set.sh | 26 ++++++++++++++++++++++++++ svn-externals.txt | 4 ++-- 3 files changed, 31 insertions(+), 5 deletions(-) create mode 100755 prop-set.sh diff --git a/application-external.txt b/application-external.txt index d21f5f81..6869dcc5 100644 --- a/application-external.txt +++ b/application-external.txt @@ -1,3 +1,3 @@ -admin http://www.ship-simu.org/repos/admin/trunk/application/admin/ -install http://www.ship-simu.org/repos/install/trunk/application/install/ -qa http://www.ship-simu.org/repos/qa/trunk/application/qa/ +admin http://ship-simu.org/repos/admin/trunk/application/admin/ +install http://ship-simu.org/repos/install/trunk/application/install/ +qa http://ship-simu.org/repos/qa/trunk/application/qa/ diff --git a/prop-set.sh b/prop-set.sh new file mode 100755 index 00000000..6f0c1343 --- /dev/null +++ b/prop-set.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +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" {} \; +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" {} \; + +# 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 diff --git a/svn-externals.txt b/svn-externals.txt index 1d221931..659854cc 100644 --- a/svn-externals.txt +++ b/svn-externals.txt @@ -1,2 +1,2 @@ -inc http://www.ship-simu.org/repos/core/trunk/inc/ -templates http://www.ship-simu.org/repos/core/trunk/templates/ +inc http://ship-simu.org/repos/core/trunk/inc/ +templates http://ship-simu.org/repos/core/trunk/templates/ -- 2.30.2