Implements a Proxy detection (WPAD) interface for Linux, Mac OSX and Windows. Offers a GUI for manual proxy settings and automatic WPAD detection. The GUI is based on QT.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
852 B
32 lines
852 B
9 years ago
|
#! /bin/bash -ex
|
||
|
|
||
|
## @id $Id$
|
||
|
|
||
|
## build resource.qrc file from a resource directory
|
||
|
##
|
||
|
## Argument: $1: resource path (default: resources)
|
||
|
## Result: file named <resource-path>.qrc (default: resources.qrc)
|
||
|
##
|
||
|
## Call:
|
||
|
##
|
||
|
## cd src
|
||
|
## ../build-resource-file.sh
|
||
|
|
||
|
## 1 2 3 4 5 6 7 8
|
||
|
## 45678901234567890123456789012345678901234567890123456789012345678901234567890
|
||
|
|
||
|
RESOURCES=${1:-resources}
|
||
|
TARGET=${RESOURCES}.qrc
|
||
|
|
||
|
test -d ${RESOURCES}
|
||
|
|
||
|
echo "<RCC>" > ${TARGET}
|
||
|
for d in $(find resources -mindepth 1 -type d); do
|
||
|
echo " <qresource prefix=\"${d#${RESOURCES}/}\">" >> ${TARGET}
|
||
|
for f in $(find $d -mindepth 1 -maxdepth 1 -type f); do
|
||
|
echo " <file alias=\"${f##*/}\">$f</file>" >> ${TARGET}
|
||
|
done
|
||
|
echo " </qresource>" >> ${TARGET}
|
||
|
done
|
||
|
echo "</RCC>" >> ${TARGET}
|