Home | History | Annotate | Download | only in etc

Lines Matching refs:_new

88 	_new=$2
89 if [ -z "$_old" ] || [ -z "$_new" ]; then
92 if [ ! -d "${_new%/*}" ]; then
93 mkdir -p "${_new%/*}"
95 if [ -f "${_old}" ] && ! [ -f "${_new}" ]; then
97 echo " to ${_new}"
98 mv "${_old}" "${_new}"
100 if [ -f "${_old}.current" ] && ! [ -f "${_new}.current" ]; then
102 echo " to ${_new}.current"
103 mv "${_old}.current" "${_new}.current"
105 ! [ -f "${_new}.current,v" ]; then
107 echo " to ${_new}.current,v"
108 mv "${_old}.current,v" "${_new}.current,v"
110 if [ -f "${_old}.backup" ] && ! [ -f "${_new}.backup" ]; then
112 echo " to ${_new}.backup"
113 mv "${_old}.backup" "${_new}.backup"
137 _new=$_file
138 migrate_file "$backup_dir/$_old" "$_new"
139 migrate_file "$_old" "$_new"
142 _new=$backup_dir/$_file
143 migrate_file "$_old" "$_new"
146 CUR=${_new}.current
147 BACK=${_new}.backup