Ticket #8818: update_themestringstool_run_script_v2.patch
File update_themestringstool_run_script_v2.patch, 2.4 KB (added by , 14 years ago) |
---|
-
themestringstool/run.sh
1 1 #!/bin/bash 2 # 3 # This script uses the themestringstool to automate the themestrings generation, 4 # by redirecting themestrings from the plugins into the themestrings.h files of 5 # the plugins, instead of simply putting all of them into the themestrings.h 6 # file in mythfrontend. 7 # 8 # It should be sufficient to run this script once without any arguments, to 9 # update all themestrings for mythfrontend and the plugins. 10 # 11 2 12 TS=`pwd`/themestrings 3 13 MYTHTHEMES=`ls ../myththemes/ --file-type |grep "/$"` 4 14 XMLPLUGINS="browser-ui.xml dvd-ui.xml gallery-ui.xml game-ui.xml \ 5 15 music-ui.xml mytharchive-ui.xml mythburn-ui.xml netvision-ui.xml \ 6 16 news-ui.xml video-ui.xml zoneminder-ui.xml weather-ui.xml" 7 17 8 # mythtv: Exclude mythplugins directory and myththemes files related to plugins 18 if [ ! -e ${TS} ]; then 19 echo "" 20 echo "ERROR: The executable ${TS} doesn't exist, have you compiled it yet?" 21 echo "" 22 exit 1 23 fi 24 25 if [ `id -u` -eq 0 ]; then 26 echo "" 27 echo "ERROR: You need to run this script as a regular user, you cannot run it with root/sudo." 28 echo "" 29 exit 1 30 fi 31 32 # Exclude mythplugins directory and myththemes files related to plugins as 33 # we don't want these strings added to mythfrontend. 9 34 pushd .. 10 35 chmod a-x mythplugins 11 36 for I in ${MYTHTHEMES}; do … … 58 83 popd > /dev/null 59 84 } 60 85 61 # exclude mythweather us_nws strings62 chmod a-r ../mythplugins/mythweather/mythweather/scripts/us_nws/maps.xml63 64 86 updateplugin mytharchive mytharchive-ui.xml mythburn-ui.xml 65 87 updateplugin mythbrowser browser-ui.xml 66 88 updateplugin mythgallery gallery-ui.xml … … 70 92 updateplugin mythnews news-ui.xml 71 93 updateplugin mythvideo dvd-ui.xml video-ui.xml 72 94 updateplugin mythweather weather-ui.xml 73 updateplugin mythzoneminder zoneminder-ui.xml #zoneminder-ui.xml doesn't exist at the moment, but it's included for future use95 #updateplugin mythzoneminder zoneminder-ui.xml #zoneminder-ui.xml doesn't exist at the moment, but it's included for future use 74 96 75 chmod a+r ../mythplugins/mythweather/mythweather/scripts/us_nws/maps.xml76 77 97 pushd .. > /dev/null 78 98 svn st 79 emacs `svn st | grep "^M" | sed -e "s/^M//"` &99 # emacs `svn st | grep "^M" | sed -e "s/^M//"` & 80 100 popd > /dev/null