mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 14:03:18 -07:00
This commit is contained in:
parent
7ac602d1d2
commit
a1fcc16aa7
2 changed files with 7 additions and 1 deletions
|
@ -29,5 +29,10 @@ AC_OUTPUT(Makefile \
|
|||
usr/share/man/man1/Makefile usr/bin/Makefile)
|
||||
|
||||
if test -n "${prefix}" && test "${prefix}" != "/usr"; then
|
||||
sed -i "s: \&\& export BYOBU_PREFIX=.*$: \&\& export BYOBU_PREFIX=\"${prefix}\":" usr/bin/byobu-janitor usr/bin/byobu-launcher usr/bin/byobu-select-profile usr/bin/byobu-status usr/bin/byobu
|
||||
for i in usr/bin/byobu-*; do
|
||||
# This hackery seems necessary for Mac OSX and Solaris installs
|
||||
sed "s/BYOBU_PREFIX=.*$/BYOBU_PREFIX=\"${prefix}\"/" "$i" > "$i.new"
|
||||
mv -f "$i.new" "$i"
|
||||
chmod 755 "$i"
|
||||
done
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue