2 # move_obsolete_paths.sh
4 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # Author: Adam Fedor <fedor@doc.com>
9 # This file is part of the GNUstep Makefile Package.
11 # This library is free software; you can redistribute it and/or
12 # modify it under the terms of the GNU General Public License
13 # as published by the Free Software Foundation; either version 2
14 # of the License, or (at your option) any later version.
16 # You should have received a copy of the GNU General Public
17 # License along with this library; see the file COPYING.LIB.
18 # If not, write to the Free Software Foundation,
19 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 # Move old paths from previous filesystem heirarchy to new location
29 # Move from root to root/Library
32 if [ -d $dir/$subpath ]; then
33 echo -n " $dir/$subpath: "
34 if [ -d $dir/Library/$subpath ]; then
35 echo Cannot move. Already exists in new location
37 mv $dir/$subpath $dir/Library/$subpath
43 if [ -d $dir/$subpath ]; then
44 echo -n " $dir/$subpath: "
45 if [ -d $dir/Library/$subpath ]; then
46 echo Cannot move. Already exists in new location
48 mv $dir/$subpath $dir/Library/$subpath
54 if [ -d $dir/$subpath ]; then
55 echo -n " $dir/$subpath: "
56 if [ -d $dir/Library/$subpath ]; then
57 echo Cannot move. Already exists in new location
59 mv $dir/$subpath $dir/Library/$subpath
65 if [ -d $dir/$subpath ]; then
66 echo -n " $dir/$subpath: "
67 if [ -d $dir/Library/$subpath ]; then
68 echo Cannot move. Already exists in new location
70 mv $dir/$subpath $dir/Library/$subpath
76 if [ -d $dir/$subpath ]; then
77 echo -n " $dir/$subpath: "
78 if [ -d $dir/Library/$subpath ]; then
79 echo Cannot move. Already exists in new location
81 mv $dir/$subpath $dir/Library/$subpath
87 # Move from root/Library/Libraries/Resources to root/Library
89 resourcedir=$dir/Libraries/Resources
91 if [ -d $resourcedir/$subpath ]; then
92 echo -n " $resourcedir/$subpath: "
93 if [ -d $dir/Library/$subpath ]; then
94 echo Cannot move. Already exists in new location
96 mv $resourcedir/$subpath $dir/Library/$subpath
102 if [ -d $resourcedir/$subpath ]; then
103 echo -n " $resourcedir/$subpath: "
104 if [ -d $dir/Library/$subpath ]; then
105 echo Cannot move. Already exists in new location
107 mv $resourcedir/$subpath $dir/Library/$subpath
113 if [ -d $resourcedir/$subpath ]; then
114 echo -n " $resourcedir/$subpath: "
115 if [ -d $dir/Library/$subpath ]; then
116 echo Cannot move. Already exists in new location
118 mv $resourcedir/$subpath $dir/Library/$subpath
124 if [ -d $resourcedir/$subpath ]; then
125 echo -n " $resourcedir/$subpath: "
126 if [ -d $dir/Library/$subpath ]; then
127 echo Cannot move. Already exists in new location
129 mv $resourcedir/$subpath $dir/Library/$subpath
135 # Remove these - will get reinstalled with gnustep-base
137 subpath=English.lproj
138 if [ -d $resourcedir/$subpath ]; then
139 rm -rf $resourcedir/$subpath
140 echo Removed $resourcedir/$subpath
143 if [ -d $resourcedir/$subpath ]; then
144 rm -rf $resourcedir/$subpath
145 echo Removed $resourcedir/$subpath
148 if [ -d $resourcedir/$subpath ]; then
149 rm -rf $resourcedir/$subpath
150 echo Removed $resourcedir/$subpath
152 subpath=Italian.lproj
153 if [ -d $resourcedir/$subpath ]; then
154 rm -rf $resourcedir/$subpath
155 echo Removed $resourcedir/$subpath
158 if [ -d $resourcedir/$subpath ]; then
159 rm -rf $resourcedir/$subpath
160 echo Removed $resourcedir/$subpath
162 subpath=NSCharacterSets
163 if [ -d $resourcedir/$subpath ]; then
164 rm -rf $resourcedir/$subpath
165 echo Removed $resourcedir/$subpath
168 if [ -d $resourcedir/$subpath ]; then
169 rm -rf $resourcedir/$subpath
170 echo Removed $resourcedir/$subpath
174 # Remove these - will get reinstalled with gnustep-gui
177 if [ -d $resourcedir/$subpath ]; then
178 rm -rf $resourcedir/$subpath
179 echo Removed $resourcedir/$subpath
183 # Remove these - obsolete
185 #if [ -d $dir/Developer ]; then
186 # rm -rf $dir/Developer
187 # echo Removed $dir/Developer