Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a html directory with default content for the backend webserver.
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
Showing
12 changed files
with
1,406 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
Oops, something went wrong.