Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 31 lines (23 sloc) 0.864 kb
#!/bin/bash
cd $CC_BASE
. $CC_FUNCTIONS
while getopts 'p' c
do
case $c in
c) PRINTER_INSTALL=-p ; shift;;
--) shift; break ;;
esac
done
PRINTER=$1
PPDFILE=$2
DEVICEURL=$3
FILTER_PATH="$CUPS_SERVER_BIN/filter/"
BACKEND_PATH="$CUPS_SERVER_BIN/backend/"
MODELS_PATH="$CUPS_SERVER_DATA/model/"
$CC_SCRIPTS/install-desktop.sh
try "Install ppds $MODELS_PATH" "cp -r etc/ppd/Epilog $MODELS_PATH"
try "Install filter binary $FILTER_PATH" "cp $CC_BINARY $FILTER_PATH/"
try "Install lpd backend $BACKEND_PATH" "cp $CC_BASE/src/lpd-epilog/lpd-epilog $BACKEND_PATH/"
#try "Installing dump backend" "cp $CC_TEST_CODE/dump $BACKEND_PATH"
#try "Fixing file permissions" "chmod u+x $BACKEND_PATH/dump"
[ $PRINTER_INSTALL ] && try "Installing printer Name: $PRINTER PPD: $PPDFILE Device:$DEVICEURL" "lpadmin -E -p $PRINTER -P $PPDFILE -v $DEVICEURL"
Jump to Line
Something went wrong with that request. Please try again.