Skip to content

Commit

Permalink
Add a html directory with default content for the backend webserver.
Browse files Browse the repository at this point in the history
The default page currently has links for the new wsdl URIs as well
as a link to the new location for the backend status html page.
Eventually the static content for the web-based backend setup will
reside under this directory as well.

http://YourBackendIP:6444/ for a test drive.
  • Loading branch information
cpinkham committed Mar 10, 2011
1 parent 7fe2713 commit fb6ed34
Show file tree
Hide file tree
Showing 12 changed files with 1,406 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mythtv/Makefile
@@ -1,7 +1,7 @@
include config.mak

MAKE_SUBDIRS = external/FFmpeg
QT_SUBDIRS = libs filters programs themes i18n locales
QT_SUBDIRS = libs filters html programs themes i18n locales

ifdef CONFIG_BINDINGS_PERL
MAKE_SUBDIRS += bindings/perl
Expand Down Expand Up @@ -52,6 +52,7 @@ settings.pro: config.mak
# explicit prerequisites for qmake generated makefiles
libs/Makefile: libs/libs.pro
filters/Makefile: filters/filters.pro
html/Makefile: html/html.pro
programs/Makefile: programs/programs.pro
themes/Makefile: themes/themes.pro
i18n/Makefile: i18n/i18n.pro
Expand Down
66 changes: 66 additions & 0 deletions mythtv/html/cpsvndir
@@ -0,0 +1,66 @@
#!/bin/sh
#
# cpsvndir: recursive directory copy excluding .svn sub dirs.

if [ -z "$1" -o -z "$2" ]; then
echo "Usage: $0 source-dir destination-dir"
exit -1
fi

# Some shells don't set EUID
if [ -z "$EUID" ]; then
if [ -x /usr/bin/id ]; then EUID=`id -u` ;fi
if [ -z "$EUID" ]; then EUID=$USER ;fi
if [ -z "$EUID" ]; then EUID=0 ;fi # Will fail if not root
fi

# Do similarly for EGID
if [ -z "$EGID" ]; then
if [ -x /usr/bin/id ]; then EGID=`id -g` ;fi
if [ -z "$EGID" ]; then EGID=0 ;fi # Will fail if not root
fi

BASE=$(basename "$1")
case "$BASE" in
.|..|/) BASE="" ;;
*) BASE="/$BASE" ;;
esac

SRC="$1"

case "$2" in
/*) DEST="$2$BASE" ;;
*) DEST="$(pwd)/$2$BASE" ;;
esac

#echo "BASE=$BASE SRC=$SRC DEST=$DEST"

IFS='
'
if [ ! -z ${MYTHPYTHON} ]; then
if [ ! -f ${MYTHPYTHON} ]; then
MYTHPYTHON="/usr/bin/env ${MYTHPYTHON}"
fi
fi

# Copy all files and directories except .svn
cd "$SRC"
for file in $(find . -name .svn -prune -or -print); do
#echo "processing $file"
if [ -d "$file" -a ! -L "$file" ]; then
mkdir -p "$DEST/$file"
else
cp -pR "$file" "$DEST/$file"
ext=${file##*.}
if [ "x$ext" = "xpy" ]; then
sed "1s%^#.*%#!${MYTHPYTHON}%" "$file" > "$DEST/$file"
# elif [ "x$ext" = "xpl" ]; then
# do some perly stuff
fi
chown -h $EUID:$EGID "$DEST/$file"
chmod +r "$DEST/$file" &> /dev/null
fi
done

exit 0

0 comments on commit fb6ed34

Please sign in to comment.