All pastes #464758 Raw Edit

Yop-Make-install

public text v1 · immutable
#464758 ·published 2007-04-29 18:11 UTC
rendered paste body
#
# Dependencies...
#
# ... OK!
#
cd icc2ps; make all
make[1]: entrant dans le répertoire « /home/jb/foo2zjs/icc2ps »
make[1]: Rien à faire pour « all ».
make[1]: quittant le répertoire « /home/jb/foo2zjs/icc2ps »
#
# Installation Dependencies...
#
# ... OK!
#
#
# Install driver, wrapper, and development tools
#
install -c foo2zjs zjsdecode arm2hpdl foo2hp foo2xqx xqxdecode foo2lava lavadecode foo2qpdl qpdldecode foo2zjs-wrapper foo2oak-wrapper foo2hp2600-wrapper foo2xqx-wrapper foo2lava-wrapper foo2qpdl-wrapper /usr/bin/
if [ " usb_printerid" != "" ]; then \
	    install -c  usb_printerid /bin/; \
	fi
#
# Install gamma correction files.  These are just templates,
# and don't actually do anything right now.  If anybody wants
# to tune them or point me at a process for doing that, please...
#
install -d /usr/share/foo2zjs/
install -c -m 644 gamma.ps /usr/share/foo2zjs/
install -c -m 644 gamma-lookup.ps /usr/share/foo2zjs/
install -d /usr/share/foo2oak/
install -d /usr/share/foo2hp/
install -d /usr/share/foo2xqx/
install -d /usr/share/foo2lava/
#
# Install ICM to Postscript file conversion utility
#
cd icc2ps; make PREFIX=/usr install
make[1]: entrant dans le répertoire « /home/jb/foo2zjs/icc2ps »
install -c foo2zjs-icc2ps /usr/bin
make[1]: quittant le répertoire « /home/jb/foo2zjs/icc2ps »
#
# Install extra files (ICM and firmware), if any exist here.
#
# Get files from the printer manufacturer, i.e. www.minolta-qms.com,
# or use the "./getweb" convenience script.
#
install -d /usr/share/foo2zjs/
# foo2zjs ICM files (if any)
install -olp -glp -m 775 -d /usr/share/foo2zjs/icm/
for i in DL*.icm CP*.icm km2430*.icm; do \
	    if [ -f $i ]; then \
		install -c -m 644 $i /usr/share/foo2zjs/icm/; \
	    fi; \
	done
# foo2zjs Firmware files (if any)
install -olp -glp -m 775 -d /usr/share/foo2zjs/firmware/
for i in sihp*.img; do \
	    if [ -f $i ]; then \
		base=`basename $i .img`; \
		./arm2hpdl $i >$base.dl; \
		install -c -m 644 $base.dl /usr/share/foo2zjs/firmware/; \
	    fi; \
	done
# foo2oak ICM files (if any)
install -olp -glp -m 775 -d /usr/share/foo2oak/icm/
# foo2hp ICM files (if any)
install -olp -glp -m 775 -d /usr/share/foo2hp/icm/
for i in hpclj26*.icm km2430*.icm; do \
	    if [ -f $i ]; then \
		install -c -m 644 $i /usr/share/foo2hp/icm/; \
	    fi; \
	done
# foo2lava ICM files (if any)
install -olp -glp -m 775 -d /usr/share/foo2lava/icm/
for i in km2530*.icm; do \
	    if [ -f $i ]; then \
		install -c -m 644 $i /usr/share/foo2lava/icm/; \
	    fi; \
	done
#
# Install prebuilt CRD files (from m2300w project)
#
install -d /usr/share/foo2zjs/
install -olp -glp -m 775 -d /usr/share/foo2zjs/crd/
for i in crd/zjs/*.*; do \
	    install -c -m 644 $i /usr/share/foo2zjs/crd/; \
	done
#
# Install prebuilt CRD files for CLP-600
#
install -d /usr/share/foo2qpdl/
install -olp -glp -m 775 -d /usr/share/foo2qpdl/crd/
for i in crd/qpdl/*cms*; do \
	    install -c -m 644 $i /usr/share/foo2qpdl/crd/; \
	done
#
# Remove obsolete foomatic database files from previous versions
#
rm -f /usr/share/foomatic/db/source/opt/foo2zjs-Media.xml
rm -f /usr/share/foomatic/db/source/opt/foo2zjs-PaperSize.xml
rm -f /usr/share/foomatic/db/source/opt/foo2zjs-Source.xml
rm -f /usr/share/foomatic/db/source/opt/foo2zjs-DitherPPI.xml
#
# Install current database files
#
install -m 644 foomatic-db/driver/foo2hp.xml foomatic-db/driver/foo2lava.xml foomatic-db/driver/foo2oak.xml foomatic-db/driver/foo2qpdl.xml foomatic-db/driver/foo2xqx.xml foomatic-db/driver/foo2zjs.xml /usr/share/foomatic/db/source/driver/
install -m 644 foomatic-db/printer/Generic-OAKT_Printer.xml foomatic-db/printer/Generic-ZjStream_Printer.xml foomatic-db/printer/HP-Color_LaserJet_1500.xml foomatic-db/printer/HP-Color_LaserJet_1600.xml foomatic-db/printer/HP-Color_LaserJet_2600n.xml foomatic-db/printer/HP-LaserJet_1000.xml foomatic-db/printer/HP-LaserJet_1005.xml foomatic-db/printer/HP-LaserJet_1018.xml foomatic-db/printer/HP-LaserJet_1020.xml foomatic-db/printer/HP-LaserJet_1022.xml foomatic-db/printer/HP-LaserJet_M1005_MFP.xml foomatic-db/printer/KonicaMinolta-magicolor_2490_MF.xml foomatic-db/printer/KonicaMinolta-magicolor_2530_DL.xml foomatic-db/printer/Minolta-Color_PageWorks_Pro_L.xml foomatic-db/printer/Minolta-magicolor_2200_DL.xml foomatic-db/printer/Minolta-magicolor_2300_DL.xml foomatic-db/printer/Minolta-magicolor_2430_DL.xml foomatic-db/printer/Samsung-CLP-300.xml foomatic-db/printer/Samsung-CLP-600.xml foomatic-db/printer/Samsung-CLX-3160.xml foomatic-db/printer/Xerox-Phaser-6110.xml foomatic-db/printer/Xerox-Phaser-6115MFP.xml /usr/share/foomatic/db/source/printer/
install -m 644 foomatic-db/opt/foo2hp-BitsPerPlane.xml foomatic-db/opt/foo2hp-ColorMode.xml foomatic-db/opt/foo2hp-Duplex.xml foomatic-db/opt/foo2hp-ICM.xml foomatic-db/opt/foo2hp-InputSlot.xml foomatic-db/opt/foo2hp-MediaType.xml foomatic-db/opt/foo2hp-Quality.xml foomatic-db/opt/foo2lava-ColorMode.xml foomatic-db/opt/foo2lava-Duplex.xml foomatic-db/opt/foo2lava-InputSlot.xml foomatic-db/opt/foo2lava-MediaType.xml foomatic-db/opt/foo2lava-PageSize.xml foomatic-db/opt/foo2lava-Quality.xml foomatic-db/opt/foo2lava-Resolution.xml foomatic-db/opt/foo2oak-BitsPerPlane.xml foomatic-db/opt/foo2oak-ColorMode.xml foomatic-db/opt/foo2oak-ICM.xml foomatic-db/opt/foo2oak-InputSlot.xml foomatic-db/opt/foo2oak-MediaType.xml foomatic-db/opt/foo2qpdl-ColorMode.xml foomatic-db/opt/foo2qpdl-Duplex.xml foomatic-db/opt/foo2qpdl-ICM.xml foomatic-db/opt/foo2qpdl-InputSlot.xml foomatic-db/opt/foo2qpdl-MediaType.xml foomatic-db/opt/foo2qpdl-PageSize.xml foomatic-db/opt/foo2qpdl-Quality.xml foomatic-db/opt/foo2qpdl-Resolution.xml foomatic-db/opt/foo2xqx-Duplex.xml foomatic-db/opt/foo2xqx-InputSlot.xml foomatic-db/opt/foo2xqx-MediaType.xml foomatic-db/opt/foo2xqx-Quality.xml foomatic-db/opt/foo2xqx-Resolution.xml foomatic-db/opt/foo2zjs-ColorMode.xml foomatic-db/opt/foo2zjs-Copies.xml foomatic-db/opt/foo2zjs-Duplex.xml foomatic-db/opt/foo2zjs-ICM.xml foomatic-db/opt/foo2zjs-InputSlot.xml foomatic-db/opt/foo2zjs-Intent.xml foomatic-db/opt/foo2zjs-MediaType.xml foomatic-db/opt/foo2zjs-NupOrient.xml foomatic-db/opt/foo2zjs-Nup.xml foomatic-db/opt/foo2zjs-PageSize.xml foomatic-db/opt/foo2zjs-PrinterType.xml foomatic-db/opt/foo2zjs-Quality.xml foomatic-db/opt/foo2zjs-Resolution.xml /usr/share/foomatic/db/source/opt/
#
# Clear foomatic cache and rebuild database if needed
#
rm -rf /var/cache/foomatic/*/*
rm -f /var/cache/foomatic/printconf.pickle
if [ -d /var/cache/foomatic/compiled ]; then \
	    cd /var/cache/foomatic/compiled; \
	    foomatic-combo-xml -O >overview.xml; \
	fi
#
# Install PPD files for CUPS
#
if [ -d /usr/share/ppd ]; then \
	    find /usr/share/ppd -name '*foo2zjs*' | xargs rm -f; \
	    find /usr/share/ppd -name '*foo2hp*' | xargs rm -f; \
	    find /usr/share/ppd -name '*foo2xqx*' | xargs rm -f; \
	    find /usr/share/ppd -name '*foo2lava*' | xargs rm -f; \
	    find /usr/share/ppd -name '*foo2qpdl*' | xargs rm -f; \
            [ -d /usr/share/ppd/foo2zjs ] || mkdir /usr/share/ppd/foo2zjs; \
	    cd PPD; \
	    for ppd in *.ppd; do \
		gzip < $ppd > /usr/share/ppd/foo2zjs/$ppd.gz; \
	    done; \
	fi
rm: ne peut enlever `/usr/share/ppd/foo2zjs': est un répertoire
if [ -d /usr/share/cups/model ]; then \
	    cd PPD; \
	    for ppd in *.ppd; do \
		gzip < $ppd > /usr/share/cups/model/$ppd.gz; \
	    done; \
	elif [ -d /usr/local/share/cups/model ]; then \
	    cd PPD; \
	    for ppd in *.ppd; do \
		gzip < $ppd > /usr/local/share/cups/model/$ppd.gz; \
	    done; \
	fi
#
# Install manual pages
#
install -d -m 755 /usr/share/man
install -d -m 755 /usr/share/man/man1/
install -c -m 644 foo2zjs.1 /usr/share/man/man1/
install -c -m 644 foo2zjs-wrapper.1 /usr/share/man/man1/
install -c -m 644 zjsdecode.1 /usr/share/man/man1/
install -c -m 644 foo2oak.1 /usr/share/man/man1/
install -c -m 644 foo2oak-wrapper.1 /usr/share/man/man1/
install -c -m 644 oakdecode.1 /usr/share/man/man1/
install -c -m 644 foo2hp.1 /usr/share/man/man1/
install -c -m 644 foo2hp2600-wrapper.1 /usr/share/man/man1/
install -c -m 644 xqxdecode.1 /usr/share/man/man1/
install -c -m 644 foo2xqx.1 /usr/share/man/man1/
install -c -m 644 foo2xqx-wrapper.1 /usr/share/man/man1/
install -c -m 644 lavadecode.1 /usr/share/man/man1/
install -c -m 644 foo2lava.1 /usr/share/man/man1/
install -c -m 644 foo2lava-wrapper.1 /usr/share/man/man1/
install -c -m 644 qpdldecode.1 /usr/share/man/man1/
install -c -m 644 foo2qpdl.1 /usr/share/man/man1/
install -c -m 644 foo2qpdl-wrapper.1 /usr/share/man/man1/
#
# Install documentation
#
install -d -m 755 /usr/share/doc/foo2zjs/
install -c -m 644 manual.pdf /usr/share/doc/foo2zjs/
install -c -m 644 COPYING /usr/share/doc/foo2zjs/
install -c -m 644 INSTALL /usr/share/doc/foo2zjs/
install -c -m 644 INSTALL.osx /usr/share/doc/foo2zjs/
install -c -m 644 README /usr/share/doc/foo2zjs/
install -c -m 644 ChangeLog /usr/share/doc/foo2zjs/
#
# If you use CUPS, then restart the spooler:
#	make cups
#
# Now use your printer configuration GUI to create a new printer.
#
# On Redhat 7.2/7.3/8.0/9.0 and Fedora Core 1-5, run "printconf-gui".
# On Fedora Core 6, run "system-config-printer".
# On Mandrake, run "printerdrake"
# On Suse 9.0, run "yast"
# On Ubuntu 5.10/6.06/6.10, run "gnome-cups-manager"