opnsense-ports/graphics/bugle/files/patch-mvtu.sh
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

10 lines
220 B
Bash

--- mvtu.sh~
+++ mvtu.sh
@@ -5,6 +5,7 @@ rm -f "$2"
for i in "$1.tu" "$1.t00.tu" "$1.001t.tu"
do
test -f "$i" && mv -f "$i" "$2"
+ test -f "${2%/*}/$i" && mv -f "${2%/*}/$i" "$2"
done
if ! test -f "$2"
then