Update of /cvsroot/pure-data/externals/zexy/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25526/src
Modified Files: makealias.sh Log Message: fixed symbolic link creation (stripped paths)
Index: makealias.sh =================================================================== RCS file: /cvsroot/pure-data/externals/zexy/src/makealias.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** makealias.sh 19 Mar 2007 15:56:56 -0000 1.1 --- makealias.sh 19 Mar 2007 16:03:21 -0000 1.2 *************** *** 28,42 ****
function do_makealias() { if [ "x${CLEANMODE}" = "xyes" ] then ! if [ -e "$2" ]; then ! debug "removing alias $2" ! rm $2 else ! debug "alias $2 does not exist" fi else ! debug "aliasing $1 to $2" ! ln -s $1 $2 fi } --- 28,54 ----
function do_makealias() { + local source + local dest + + source=$1 + dest=$2 + if [ "x${CLEANMODE}" = "xyes" ] then ! if [ -e "${dest}" ]; then ! debug "removing alias ${dest}" ! rm ${dest} else ! debug "alias ${dest} does not exist" fi else ! debug "aliasing ${source} to ${dest}" ! if [ "x${COPYMODE}" = "xyes" ] ! then ! cp ${source} ${dest} ! else ! source=${source##*/} ! ln -s ${source} ${dest} ! fi fi }