Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37883716
en ru br
ALT Linux repos
S:5.45-alt3
5.0: 5.08-alt2
4.1: 5.07-alt0.M41.1
4.0: 5.01-alt1
3.0: 4.22-alt2

Group :: Graphical desktop/Other
RPM: xscreensaver

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

#!/bin/sh

DIST_BIN=`dirname "$0"`

CMD=xsltproc
XSL=$DIST_BIN/xscreensaver-config.xsl

if test "x$1" = "x" -o "x$1" = "x-h" -o "x$1" = "x--help"; then
echo "usage: $0 [file] ..."
exit 1
fi

if [ ! -r ${XSL} ]; then
echo "Cannot find XSLT file"
exit 1
fi

FILES="$@"
for FILE in $FILES; do
echo "${FILE}" | grep ".xml$" > /dev/null
if [ $? -ne 0 ]; then
echo "Skipping non-xml file: ${FILE}"
continue
fi

d=`dirname ${FILE}`
b=xscreensaver-`basename ${FILE} .xml`

outfile="${b}.desktop"
echo "Creating: ${outfile}"
${CMD} -o ${outfile} ${XSL} ${FILE}
done

exit 0
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin