#!/bin/sh

# list the patch files in the correct order

if test "$2" = "unpatch"; then
    options="-r"
else
    options=""
fi

cd $1; ls -1 $options *.diff* | sed 's/\.bz2//'
