Lines Matching refs:_new
84 _new=$2
85 if [ -z "$_old" -o -z "$_new" ]; then
88 if [ ! -d "${_new%/*}" ]; then
89 mkdir -p "${_new%/*}"
91 if [ -f "${_old}" -a ! -f "${_new}" ]; then
93 echo " to ${_new}"
94 mv "${_old}" "${_new}"
96 if [ -f "${_old}.current" -a ! -f "${_new}.current" ]; then
98 echo " to ${_new}.current"
99 mv "${_old}.current" "${_new}.current"
100 if [ -f "${_old}.current,v" -a ! -f "${_new}.current,v" ]; then
102 echo " to ${_new}.current,v"
103 mv "${_old}.current,v" "${_new}.current,v"
105 if [ -f "${_old}.backup" -a ! -f "${_new}.backup" ]; then
107 echo " to ${_new}.backup"
108 mv "${_old}.backup" "${_new}.backup"
132 _new=$_file
133 migrate_file "$backup_dir/$_old" "$_new"
134 migrate_file "$_old" "$_new"
137 _new=$backup_dir/$_file
138 migrate_file "$_old" "$_new"
141 CUR=${_new}.current
142 BACK=${_new}.backup