From 29a618d971982acc6c5754f894fa16e29e49d1f7 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 25 Aug 2012 10:39:34 +0000 Subject: moved some scripts to separate directory git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2897 90c681e8-e032-0410-971d-27865f9a5e38 --- remove_svn_tags | 31 ------------------------------- remove_svn_tags.cmd | 1 - update_ts.sh | 12 ------------ utils/remove_svn_tags.cmd | 1 + utils/remove_svn_tags.sh | 7 +++++++ utils/update_ts.sh | 12 ++++++++++++ 6 files changed, 20 insertions(+), 44 deletions(-) delete mode 100644 remove_svn_tags delete mode 100644 remove_svn_tags.cmd delete mode 100755 update_ts.sh create mode 100644 utils/remove_svn_tags.cmd create mode 100755 utils/remove_svn_tags.sh create mode 100755 utils/update_ts.sh diff --git a/remove_svn_tags b/remove_svn_tags deleted file mode 100644 index 986610968..000000000 --- a/remove_svn_tags +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - -###################################### -# Removes svn tags from qmmp package # -###################################### - -rm_dir='.svn' - -walk_dirs(){ - - for file in `ls -a` - do - if [ -d $file ] - then - if [ $file == $rm_dir ] - then - echo "Removing $rm_dir directory..." - rm -rf $rm_dir - elif [[ $file != '.' && $file != '..' ]] - then - echo "Entering $file" - cd $file; - walk_dirs; - cd .. - fi - fi - done - -} - -walk_dirs diff --git a/remove_svn_tags.cmd b/remove_svn_tags.cmd deleted file mode 100644 index 2c148fce2..000000000 --- a/remove_svn_tags.cmd +++ /dev/null @@ -1 +0,0 @@ -for /d /r %%B in (.svn) do rmdir /s /q %%B diff --git a/update_ts.sh b/update_ts.sh deleted file mode 100755 index 28e0ec785..000000000 --- a/update_ts.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -for file in `find . -name "*.pro"` -do - ts_pro=`cat $file | grep TRANSLATIONS` - if [ "$ts_pro" ] - then - lupdate -no-obsolete $file - fi - -done - diff --git a/utils/remove_svn_tags.cmd b/utils/remove_svn_tags.cmd new file mode 100644 index 000000000..2c148fce2 --- /dev/null +++ b/utils/remove_svn_tags.cmd @@ -0,0 +1 @@ +for /d /r %%B in (.svn) do rmdir /s /q %%B diff --git a/utils/remove_svn_tags.sh b/utils/remove_svn_tags.sh new file mode 100755 index 000000000..2334f385d --- /dev/null +++ b/utils/remove_svn_tags.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +###################################### +# Removes svn tags from qmmp package # +###################################### + +find ../ -type d -name ".svn" | xargs rm -rf diff --git a/utils/update_ts.sh b/utils/update_ts.sh new file mode 100755 index 000000000..c9d7babf7 --- /dev/null +++ b/utils/update_ts.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +for file in `find ../ -name "*.pro"` +do + ts_pro=`cat $file | grep TRANSLATIONS` + if [ "$ts_pro" ] + then + lupdate -no-obsolete -silent -extensions 'cpp,ui' $file + fi + +done + -- cgit v1.2.3-13-gbd6f