File: xclip-cutfile

package info (click to toggle)
xclip 0.13-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 344 kB
  • sloc: ansic: 1,282; sh: 267; makefile: 75
file content (15 lines) | stat: -rwxr-xr-x 389 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# FIXME: We shouldn't remove the files until xclip has successfully
# transferred the data. With the current process model, this is not
# very easy, though. 
set -e
if [ "x$1" = "x" ]; then
    echo "Usage: [options] $0 file..." >&2
    echo "-p Copy path information; preserve tree structure"
    exit 1
fi
xclip-copyfile "$@"
if [ "x$1" = "x-p" ]; then
    shift
fi
rm -- "$@"