3 # Copyright (c) Pierre Habouzit, 2007
7 if [ -z "$GUILT_VERSION" ]; then
8 echo "Invoking `basename "$0"` directly is no longer supported." >&2
17 target_dir
=${1:-"patches"}
19 if [ -e "$target_dir" ]; then
20 die
"Specified directory already exists"
23 trap "rm -rf \"$target_dir\"" 0
24 mkdir
-p "$target_dir"
26 get_full_series |
tee "$target_dir/series" |
while read p
; do
27 silent mkdir
-p "`dirname $target_dir/$p`" || true
28 cp "$GUILT_DIR/$branch/$p" "$target_dir/$p"
32 disp
"Series exported to \"$target_dir\" sucessfully."