#
# Their setup.sh script sources this file.
-# Copyright (C) 2009-2014 Simon Ruderich
+# Copyright (C) 2009-2018 Simon Ruderich
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Usage: sed_i ... <file>
#
-# sed -i is not compatible due to different implementations. See cmd_i.
+# sed -i is not portable due to different implementations. See cmd_i.
sed_i() {
cmd_i sed "$@"
}
#
# - Debian (debian)
# - Gentoo (gentoo)
-# - Mac OS X (darwin)
# - Solaris/OpenSolaris (sun)
# - FreeBSD (freebsd)
#
echo debian
elif test -f /etc/gentoo-release; then
echo gentoo
- elif test x`uname` = xDarwin; then
- echo darwin
elif test x`uname` = xSunOS; then
echo sun
elif test x`uname` = xFreeBSD; then
# Abort if the target file exists and is no symbolic link. Prevents
# overwriting real files.
if test -e "$target" && test ! -h "$target"; then
- printf "link(): target '%s' exists already and is no symbolic link!" \
+ printf "link(): target '%s' exists already and is no symbolic link!\n" \
"$target" >&2
exit 1
fi
# Make sure the source exists.
if test ! -e "$source"; then
- printf "link(): source '%s' doesn't exist!" "$source" >&2
+ printf "link(): source '%s' doesn't exist!\n" "$source" >&2
exit 1
fi