Ticket #6772: cpsvndir_mythplugins2.patch
File cpsvndir_mythplugins2.patch, 2.0 KB (added by , 15 years ago) |
---|
-
mytharchive/mytharchive/mytharchive.pro
27 27 SOURCES += mythburn.cpp themeselector.cpp editmetadata.cpp thumbfinder.cpp 28 28 SOURCES += exportnative.cpp importnative.cpp 29 29 30 QMAKE_COPY_DIR = sh ../../cpsvndir 31 30 32 burnuifiles.path = $${SYSROOT}$${PREFIX}/share/mythtv/themes/default 31 33 burnuifiles.files = mythburn-ui.xml 32 34 -
cpsvndir
1 #!/bin/sh 2 # 3 # cpsvndir: recursive directory copy excluding .svn sub dirs. 4 5 6 if [ -z "$1" -o -z "$2" ]; then 7 echo "Usage: $0 source-dir destination-dir" 8 exit -1 9 fi 10 11 # Some shells don't set EUID 12 if [ -z "$EUID" ]; then 13 if [ -x /usr/bin/id ]; then EUID=`id -u` ;fi 14 if [ -z "$EUID" ]; then EUID=$USER ;fi 15 if [ -z "$EUID" ]; then EUID=0 ;fi # Will fail if not root 16 fi 17 18 # Build directory structure 19 IFS=$'\012' 20 for directory in $(find "$1" -path '*/.svn' -prune -or -type d -print); do 21 mkdir -p "$2/${1##*/}/${directory/#$1}" 22 done 23 24 # Copy files 25 for file in $(find "$1" -path '*/.svn' -prune -or ! -type d -print); do 26 cp -pR "$file" "$2/${1##*/}/${file/#$1}" 27 chown $EUID "$2/${1##*/}/${file/#$1}" &> /dev/null 28 chmod +r "$2/${1##*/}/${file/#$1}" &>/dev/null 29 done 30 31 exit 0 -
mythweather/mythweather/mythweather.pro
13 13 INCLUDEPATH += $${PREFIX}/include/mythtv 14 14 INCLUDEPATH += $${PREFIX}/include/mythtv/libmythui 15 15 16 QMAKE_COPY_DIR = sh ../../cpsvndir 17 16 18 datafiles.path = $${PREFIX}/share/mythtv/mythweather/ 17 19 datafiles.files = weather-screens.xml 18 20 installscripts.path = $${PREFIX}/share/mythtv/mythweather/scripts