Debian Codegraph @

other/examples/remote/local/copy

raw
1 #!/bin/sh
2 #
3 # 2012 Nico Schottelius (nico-cdist schottelius.org)
4 # 2013 Steven Armstrong (steven-cdist armstrong.cc)
5 #
6 # This file is part of cdist.
7 #
8 # cdist is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
12 #
13 # cdist is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with cdist. If not, see <http://www.gnu.org/licenses/>.
20 #
21 #
22
23 code="$(echo "$@" | sed "s|\([[:space:]]\)$__target_host:|\1|g")"
24 cp --dereference $code