Ran am2cmake.
[basket4.git] / links.sh
blobe72d5d1ef3ee413cf14566b59894556120e91eda
1 #!/bin/bash
3 TARGET=`pwd`
4 if [ -e $TARGET'/debug' ]; then
5 BUILD=$TARGET'/debug'
6 else
7 BUILD=$TARGET
8 fi
9 LINKS=`echo ~`'/kde-debug'
10 HOME=`echo ~`
12 dest_files=(
13 "$LINKS/share/apps/basket/backgrounds/abstract.png"
14 "$LINKS/share/apps/basket/backgrounds/alien-artifact.png"
15 "$LINKS/share/apps/basket/backgrounds/alien-artifact.png.config"
16 "$LINKS/share/apps/basket/backgrounds/basket-title.png"
17 "$LINKS/share/apps/basket/backgrounds/green-curves.png"
18 "$LINKS/share/apps/basket/backgrounds/light.png"
19 "$LINKS/share/apps/basket/backgrounds/painting.png"
20 "$LINKS/share/apps/basket/backgrounds/pens.png"
21 "$LINKS/share/apps/basket/backgrounds/pins.png"
22 "$LINKS/share/apps/basket/backgrounds/rainbow-balls.png"
23 "$LINKS/share/apps/basket/backgrounds/rounds-line.png"
24 "$LINKS/share/apps/basket/backgrounds/todo.png"
25 "$LINKS/share/apps/basket/backgrounds/working.png"
26 "$LINKS/share/apps/basket/backgrounds/previews/abstract.png"
27 "$LINKS/share/apps/basket/backgrounds/previews/alien-artifact.png"
28 "$LINKS/share/apps/basket/backgrounds/previews/basket-title.png"
29 "$LINKS/share/apps/basket/backgrounds/previews/green-curves.png"
30 "$LINKS/share/apps/basket/backgrounds/previews/light.png"
31 "$LINKS/share/apps/basket/backgrounds/previews/painting.png"
32 "$LINKS/share/apps/basket/backgrounds/previews/pens.png"
33 "$LINKS/share/apps/basket/backgrounds/previews/pins.png"
34 "$LINKS/share/apps/basket/backgrounds/previews/rainbow-balls.png"
35 "$LINKS/share/apps/basket/backgrounds/previews/rounds-line.png"
36 "$LINKS/share/apps/basket/backgrounds/previews/todo.png"
37 "$LINKS/share/apps/basket/backgrounds/previews/working.png"
38 "$LINKS/share/apps/basket/images/insertion_help.png"
39 "$LINKS/share/apps/basket/images/tag_export_help.png"
40 "$LINKS/share/apps/basket/basket_part.rc"
41 "$LINKS/share/apps/basket/basketui.rc"
42 "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_priority_high.png"
43 "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_important.png"
44 "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_for_later.png"
45 "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_preference_excelent.png"
46 "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_priority_medium.png"
47 "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_progress_000.png"
48 "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_progress_100.png"
49 "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_preference_bad.png"
50 "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_preference_good.png"
51 "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_checkbox.png"
52 "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_progress_050.png"
53 "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_fun.png"
54 "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_progress_025.png"
55 "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_checkbox_checked.png"
56 "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_progress_075.png"
57 "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_priority_low.png"
58 "$LINKS/share/apps/kontact/ksettingsdialog/kontact_basketplugin.setdlg"
59 "$LINKS/share/services/kontact/basket.desktop"
60 "$LINKS/share/services/basket_config_general.desktop"
61 "$LINKS/share/services/basket_config_baskets.desktop"
62 "$LINKS/share/services/basket_config_new_notes.desktop"
63 "$LINKS/share/services/basket_config_notes_appearance.desktop"
64 "$LINKS/share/services/basket_config_apps.desktop"
65 "$LINKS/share/services/basket_part.desktop"
66 "$LINKS/share/applnk/Utilities/basket.desktop"
67 "$LINKS/lib/kde3/libkontact_basket.so"
68 "$LINKS/lib/kde3/libkontact_basket.la"
69 "$LINKS/lib/kde3/kcm_basket.so"
70 "$LINKS/lib/kde3/kcm_basket.la"
71 "$LINKS/lib/kde3/libbasketpart.so"
72 "$LINKS/lib/kde3/libbasketpart.la"
73 "$LINKS/lib/libbasketcommon.so"
74 "$LINKS/lib/libbasketcommon.la"
75 "$LINKS/bin/basket"
76 "$LINKS/share/icons/crystalsvg/16x16/actions/likeback_dislike.png"
77 "$LINKS/share/icons/crystalsvg/16x16/actions/likeback_like.png"
78 "$LINKS/share/icons/crystalsvg/16x16/actions/likeback_configure.png"
79 "$LINKS/share/icons/crystalsvg/16x16/actions/tag_priority_high.png"
80 "$LINKS/share/icons/crystalsvg/16x16/actions/tag_important.png"
81 "$LINKS/share/icons/crystalsvg/16x16/actions/tag_for_later.png"
82 "$LINKS/share/icons/crystalsvg/16x16/actions/tag_preference_excelent.png"
83 "$LINKS/share/icons/crystalsvg/16x16/actions/tag_priority_medium.png"
84 "$LINKS/share/icons/crystalsvg/16x16/actions/tag_progress_000.png"
85 "$LINKS/share/icons/crystalsvg/16x16/actions/tag_progress_100.png"
86 "$LINKS/share/icons/crystalsvg/16x16/actions/tag_preference_bad.png"
87 "$LINKS/share/icons/crystalsvg/16x16/actions/tag_preference_good.png"
88 "$LINKS/share/icons/crystalsvg/16x16/actions/tag_checkbox.png"
89 "$LINKS/share/icons/crystalsvg/16x16/actions/tag_progress_050.png"
90 "$LINKS/share/icons/crystalsvg/16x16/actions/tag_fun.png"
91 "$LINKS/share/icons/crystalsvg/16x16/actions/tag_progress_025.png"
92 "$LINKS/share/icons/crystalsvg/16x16/actions/tag_checkbox_checked.png"
93 "$LINKS/share/icons/crystalsvg/16x16/actions/tag_progress_075.png"
94 "$LINKS/share/icons/crystalsvg/16x16/actions/tag_priority_low.png"
95 "$LINKS/share/icons/crystalsvg/16x16/apps/basket.png"
96 "$LINKS/share/icons/crystalsvg/128x128/apps/basket.png"
97 "$LINKS/share/icons/crystalsvg/64x64/apps/basket.png"
98 "$LINKS/share/icons/crystalsvg/48x48/apps/basket.png"
99 "$LINKS/share/icons/crystalsvg/22x22/apps/basket.png"
100 "$LINKS/share/icons/crystalsvg/32x32/apps/basket.png"
101 "$LINKS/share/icons/crystalsvg/scalable/apps/basket.svg"
104 source_files=(
105 "$TARGET/backgrounds/abstract.png"
106 "$TARGET/backgrounds/alien-artifact.png"
107 "$TARGET/backgrounds/alien-artifact.png.config"
108 "$TARGET/backgrounds/basket-title.png"
109 "$TARGET/backgrounds/green-curves.png"
110 "$TARGET/backgrounds/light.png"
111 "$TARGET/backgrounds/painting.png"
112 "$TARGET/backgrounds/pens.png"
113 "$TARGET/backgrounds/pins.png"
114 "$TARGET/backgrounds/rainbow-balls.png"
115 "$TARGET/backgrounds/rounds-line.png"
116 "$TARGET/backgrounds/todo.png"
117 "$TARGET/backgrounds/working.png"
118 "$TARGET/backgrounds-previews/abstract.png"
119 "$TARGET/backgrounds-previews/alien-artifact.png"
120 "$TARGET/backgrounds-previews/basket-title.png"
121 "$TARGET/backgrounds-previews/green-curves.png"
122 "$TARGET/backgrounds-previews/light.png"
123 "$TARGET/backgrounds-previews/painting.png"
124 "$TARGET/backgrounds-previews/pens.png"
125 "$TARGET/backgrounds-previews/pins.png"
126 "$TARGET/backgrounds-previews/rainbow-balls.png"
127 "$TARGET/backgrounds-previews/rounds-line.png"
128 "$TARGET/backgrounds-previews/todo.png"
129 "$TARGET/backgrounds-previews/working.png"
130 "$TARGET/images/insertion_help.png"
131 "$TARGET/images/tag_export_help.png"
132 "$TARGET/src/basket_part.rc"
133 "$TARGET/src/basketui.rc"
134 "$TARGET/tags/cr16-action-tag_priority_high.png"
135 "$TARGET/tags/cr16-action-tag_important.png"
136 "$TARGET/tags/cr16-action-tag_for_later.png"
137 "$TARGET/tags/cr16-action-tag_preference_excelent.png"
138 "$TARGET/tags/cr16-action-tag_priority_medium.png"
139 "$TARGET/tags/cr16-action-tag_progress_000.png"
140 "$TARGET/tags/cr16-action-tag_progress_100.png"
141 "$TARGET/tags/cr16-action-tag_preference_bad.png"
142 "$TARGET/tags/cr16-action-tag_preference_good.png"
143 "$TARGET/tags/cr16-action-tag_checkbox.png"
144 "$TARGET/tags/cr16-action-tag_progress_050.png"
145 "$TARGET/tags/cr16-action-tag_fun.png"
146 "$TARGET/tags/cr16-action-tag_progress_025.png"
147 "$TARGET/tags/cr16-action-tag_checkbox_checked.png"
148 "$TARGET/tags/cr16-action-tag_progress_075.png"
149 "$TARGET/tags/cr16-action-tag_priority_low.png"
150 "$TARGET/kontact_plugin/kontact_basketplugin.setdlg"
151 "$TARGET/kontact_plugin/basket.desktop"
152 "$TARGET/src/basket_config_general.desktop"
153 "$TARGET/src/basket_config_baskets.desktop"
154 "$TARGET/src/basket_config_new_notes.desktop"
155 "$TARGET/src/basket_config_notes_appearance.desktop"
156 "$TARGET/src/basket_config_apps.desktop"
157 "$TARGET/src/basket_part.desktop"
158 "$TARGET/src/basket.desktop"
159 "$BUILD/kontact_plugin/.libs/libkontact_basket.so"
160 "$BUILD/kontact_plugin/.libs/libkontact_basket.la"
161 "$BUILD/src/.libs/kcm_basket.so"
162 "$BUILD/src/.libs/kcm_basket.la"
163 "$BUILD/src/.libs/libbasketpart.so"
164 "$BUILD/src/.libs/libbasketpart.la"
165 "$BUILD/src/.libs/libbasketcommon.so"
166 "$BUILD/src/.libs/libbasketcommon.la"
167 "$BUILD/src/.libs/basket"
168 "$TARGET/src/cr16-action-likeback_dislike.png"
169 "$TARGET/src/cr16-action-likeback_like.png"
170 "$TARGET/src/cr16-action-likeback_configure.png"
171 "$TARGET/tags/cr16-action-tag_priority_high.png"
172 "$TARGET/tags/cr16-action-tag_important.png"
173 "$TARGET/tags/cr16-action-tag_for_later.png"
174 "$TARGET/tags/cr16-action-tag_preference_excelent.png"
175 "$TARGET/tags/cr16-action-tag_priority_medium.png"
176 "$TARGET/tags/cr16-action-tag_progress_000.png"
177 "$TARGET/tags/cr16-action-tag_progress_100.png"
178 "$TARGET/tags/cr16-action-tag_preference_bad.png"
179 "$TARGET/tags/cr16-action-tag_preference_good.png"
180 "$TARGET/tags/cr16-action-tag_checkbox.png"
181 "$TARGET/tags/cr16-action-tag_progress_050.png"
182 "$TARGET/tags/cr16-action-tag_fun.png"
183 "$TARGET/tags/cr16-action-tag_progress_025.png"
184 "$TARGET/tags/cr16-action-tag_checkbox_checked.png"
185 "$TARGET/tags/cr16-action-tag_progress_075.png"
186 "$TARGET/tags/cr16-action-tag_priority_low.png"
187 "$TARGET/src/cr16-app-basket.png"
188 "$TARGET/src/cr128-app-basket.png"
189 "$TARGET/src/cr64-app-basket.png"
190 "$TARGET/src/cr48-app-basket.png"
191 "$TARGET/src/cr22-app-/basket.png"
192 "$TARGET/src/cr32-app-/basket.png"
193 "$TARGET/src/crsc-app-basket.svg"
196 function makedir()
198 if [ ! -d $1 ]; then
199 echo "Making dir: $1"
200 mkdir -p $1
204 function softlink()
206 if [ -L $2 ]; then
207 rm $2
209 makedir `dirname $2`
210 echo "Linking: $2->$1"
211 ln -s $1 $2
214 index=0
215 element_count=${#source_files[@]}
217 while [ "$index" -lt "$element_count" ]; do
218 softlink "${source_files[$index]}" "${dest_files[$index]}"
219 let "index = $index + 1"
220 done
222 softlink "$LINKS/lib" "$LINKS/lib64"