mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@61592 d073be05-634f-4543-b044-5fe20cf6d1d6
29 lines
741 B
Bash
Executable File
29 lines
741 B
Bash
Executable File
#!/bin/zsh
|
|
############################################################## {{{1 ##########
|
|
# $Author$
|
|
# $Revision$
|
|
# $Date$
|
|
# $HeadURL$
|
|
############################################################## }}}1 ##########
|
|
|
|
setopt X_Trace;
|
|
|
|
if test "${USER}" = "root"; then
|
|
pushd "/System/Library/Frameworks/JavaVM.framework/Versions";
|
|
if test -d "A"; then
|
|
rm "Current";
|
|
ln -s "A" "Current";
|
|
fi;
|
|
if test -d "1.6"; then
|
|
rm "CurrentJDK";
|
|
ln -s "1.6" "CurrentJDK";
|
|
fi;
|
|
popd;
|
|
else
|
|
sudo ${0}
|
|
fi;
|
|
|
|
############################################################ {{{1 ###########
|
|
# vim: set nowrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab :
|
|
# vim: set textwidth=0 filetype=zsh foldmethod=marker nospell :
|