mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
tools/python: Fix install-wrap
This allows to use install-wrap when the source scripts is in a subdirectory. Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Acked-by: Wei Liu <wl@xen.org>
This commit is contained in:
1 parent
7efd9f3d45
commit
78f81c6870
1 file changed
+1
-1
@@ -44,7 +44,7 @@ shift
|
|||||||
destf="$dest"
|
destf="$dest"
|
||||||
for srcf in ${srcs}; do
|
for srcf in ${srcs}; do
|
||||||
if test -d "$dest"; then
|
if test -d "$dest"; then
|
||||||
destf="$dest/${srcf%%*/}"
|
destf="$dest/${srcf##*/}"
|
||||||
fi
|
fi
|
||||||
org="$(sed -n '2q; /^#! *\/usr\/bin\/env python *$/p' $srcf)"
|
org="$(sed -n '2q; /^#! *\/usr\/bin\/env python *$/p' $srcf)"
|
||||||
if test "x$org" = x; then
|
if test "x$org" = x; then
|
||||||
|
|||||||