X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fdrecurse-cmd.py;h=21ee3a55b45592d9a640f81af3951575ef4b532c;hb=c40b3dd5fd74e72024fbaad3daf5a958aefa1c54;hp=cdf66803034bd0f429a869ea75b94ba06f29e25a;hpb=eef7376275bc4bd8672d1295360b4f281ad38c37;p=bup.git diff --git a/cmd/drecurse-cmd.py b/cmd/drecurse-cmd.py index cdf6680..21ee3a5 100755 --- a/cmd/drecurse-cmd.py +++ b/cmd/drecurse-cmd.py @@ -1,8 +1,17 @@ -#!/usr/bin/env python +#!/bin/sh +"""": # -*-python-*- +bup_python="$(dirname "$0")/bup-python" || exit $? +exec "$bup_python" "$0" ${1+"$@"} +""" +# end of bup preamble +from __future__ import absolute_import from os.path import relpath +import sys + from bup import options, drecurse -from bup.helpers import * +from bup.helpers import log, parse_excludes, parse_rx_excludes, saved_errors + optspec = """ bup drecurse