#!/bin/sh # This is a stub cfgarchive for samples.cc list-config DIR=/tmp/cfgarchive.d if [ "$1" = "--arch" ] ; then echo Executing /tmp/cfgarchive $* echo Archiving $2 in $DIR/$2 mkdir -p $DIR`dirname $2` cat >$DIR/$2 elif [ "$1" = "--extr" ] ; then # Extraction must be silent (no echo) as we extract to stdout if [ -f $DIR/$2 ] ; then echo extracting $DIR/$2 >/dev/tty cat $DIR/$2 else echo extracting $DIR/$2: file missing >/dev/tty echo "### no arch ###" fi else echo Invalid command fi