#!/bin/dash export PATH=/bin b=/var/cache/rebase if [ ! -d ${b} ] ; then echo "Directory ${b} does not exist, trying to re-create." mkdir -p ${b} fi usage () { echo " rebase-trigger [-h | --help | [ full[rebase] | peflags ]] Commands: ------------------------------------ full fullrebase Perform a full rebase the next time autorebase is run. peflags Set some flags on executables necessary to run on a Terminal Server. This is only needed for 32bit executables that have been created with old toolchains. rebuild rebuild_always Always build the cache files from scratch. incremental rebuild_incremental Build the cache files considering only changes from the last run. This assumes that no manual changes were done to the system and all timestamps are correct. " } trigger_fullrebase () { local f g f="${b}/fullrebase" g="${f}.done" if [ -e "$g" ] ; then mv "$g" "$f" else cat > "$f" < "$f" < "$f" < "$g" <