summaryrefslogtreecommitdiff
path: root/programs/deprecated.in
blob: 7fedf92701d57b8322835925af6ba8f7be89c8b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

replacement="gio @command@"
help="gio help @command@"

>&2 echo "This tool has been deprecated, use '$replacement' instead."
>&2 echo "See '$help' for more info."
>&2 echo

if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
  exec $help "$@:2"
else
  exec $replacement "$@"
fi