#!/bin/sh # EXT=hplip-plugins TCZDIR=$EXT SDIR=plugin_tmp CWD=$(pwd) # # This should download the version specific plugin and extract it # HPVER=$(grep '^version=' /usr/local/etc/hp/hplip.conf | cut -d= -f2) PLUGIN=$(wget -O - http://hplip.sourceforge.net/plugin.conf | grep "http.*-$HPVER-" | cut -d\ -f3) wget $PLUGIN sh $(basename $PLUGIN) --keep --noexec # # make extensions for both 32 and 64 bit intel, could add arm too if desired # for a in x86_32 x86_64; do while read DIR; do mkdir -p $TCZDIR/TCZ-$a/usr/local/$DIR; done <