summaryrefslogtreecommitdiffstats
path: root/links.sh
blob: e72d5d1ef3ee413cf14566b59894556120e91eda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
#!/bin/bash

TARGET=`pwd`
if [ -e $TARGET'/debug' ]; then
    BUILD=$TARGET'/debug'
else
    BUILD=$TARGET
fi
LINKS=`echo ~`'/kde-debug'
HOME=`echo ~`

dest_files=(
    "$LINKS/share/apps/basket/backgrounds/abstract.png"
    "$LINKS/share/apps/basket/backgrounds/alien-artifact.png"
    "$LINKS/share/apps/basket/backgrounds/alien-artifact.png.config"
    "$LINKS/share/apps/basket/backgrounds/basket-title.png"
    "$LINKS/share/apps/basket/backgrounds/green-curves.png"
    "$LINKS/share/apps/basket/backgrounds/light.png"
    "$LINKS/share/apps/basket/backgrounds/painting.png"
    "$LINKS/share/apps/basket/backgrounds/pens.png"
    "$LINKS/share/apps/basket/backgrounds/pins.png"
    "$LINKS/share/apps/basket/backgrounds/rainbow-balls.png"
    "$LINKS/share/apps/basket/backgrounds/rounds-line.png"
    "$LINKS/share/apps/basket/backgrounds/todo.png"
    "$LINKS/share/apps/basket/backgrounds/working.png"
    "$LINKS/share/apps/basket/backgrounds/previews/abstract.png"
    "$LINKS/share/apps/basket/backgrounds/previews/alien-artifact.png"
    "$LINKS/share/apps/basket/backgrounds/previews/basket-title.png"
    "$LINKS/share/apps/basket/backgrounds/previews/green-curves.png"
    "$LINKS/share/apps/basket/backgrounds/previews/light.png"
    "$LINKS/share/apps/basket/backgrounds/previews/painting.png"
    "$LINKS/share/apps/basket/backgrounds/previews/pens.png"
    "$LINKS/share/apps/basket/backgrounds/previews/pins.png"
    "$LINKS/share/apps/basket/backgrounds/previews/rainbow-balls.png"
    "$LINKS/share/apps/basket/backgrounds/previews/rounds-line.png"
    "$LINKS/share/apps/basket/backgrounds/previews/todo.png"
    "$LINKS/share/apps/basket/backgrounds/previews/working.png"
    "$LINKS/share/apps/basket/images/insertion_help.png"
    "$LINKS/share/apps/basket/images/tag_export_help.png"
    "$LINKS/share/apps/basket/basket_part.rc"
    "$LINKS/share/apps/basket/basketui.rc"
    "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_priority_high.png"
    "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_important.png"
    "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_for_later.png"
    "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_preference_excelent.png"
    "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_priority_medium.png"
    "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_progress_000.png"
    "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_progress_100.png"
    "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_preference_bad.png"
    "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_preference_good.png"
    "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_checkbox.png"
    "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_progress_050.png"
    "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_fun.png"
    "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_progress_025.png"
    "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_checkbox_checked.png"
    "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_progress_075.png"
    "$LINKS/share/apps/basket/icons/crystalsvg/16x16/actions/tag_priority_low.png"
    "$LINKS/share/apps/kontact/ksettingsdialog/kontact_basketplugin.setdlg"
    "$LINKS/share/services/kontact/basket.desktop"
    "$LINKS/share/services/basket_config_general.desktop"
    "$LINKS/share/services/basket_config_baskets.desktop"
    "$LINKS/share/services/basket_config_new_notes.desktop"
    "$LINKS/share/services/basket_config_notes_appearance.desktop"
    "$LINKS/share/services/basket_config_apps.desktop"
    "$LINKS/share/services/basket_part.desktop"
    "$LINKS/share/applnk/Utilities/basket.desktop"
    "$LINKS/lib/kde3/libkontact_basket.so"
    "$LINKS/lib/kde3/libkontact_basket.la"
    "$LINKS/lib/kde3/kcm_basket.so"
    "$LINKS/lib/kde3/kcm_basket.la"
    "$LINKS/lib/kde3/libbasketpart.so"
    "$LINKS/lib/kde3/libbasketpart.la"
    "$LINKS/lib/libbasketcommon.so"
    "$LINKS/lib/libbasketcommon.la"
    "$LINKS/bin/basket"
	"$LINKS/share/icons/crystalsvg/16x16/actions/likeback_dislike.png"
	"$LINKS/share/icons/crystalsvg/16x16/actions/likeback_like.png"
	"$LINKS/share/icons/crystalsvg/16x16/actions/likeback_configure.png"
	"$LINKS/share/icons/crystalsvg/16x16/actions/tag_priority_high.png"
	"$LINKS/share/icons/crystalsvg/16x16/actions/tag_important.png"
	"$LINKS/share/icons/crystalsvg/16x16/actions/tag_for_later.png"
	"$LINKS/share/icons/crystalsvg/16x16/actions/tag_preference_excelent.png"
	"$LINKS/share/icons/crystalsvg/16x16/actions/tag_priority_medium.png"
	"$LINKS/share/icons/crystalsvg/16x16/actions/tag_progress_000.png"
	"$LINKS/share/icons/crystalsvg/16x16/actions/tag_progress_100.png"
	"$LINKS/share/icons/crystalsvg/16x16/actions/tag_preference_bad.png"
	"$LINKS/share/icons/crystalsvg/16x16/actions/tag_preference_good.png"
	"$LINKS/share/icons/crystalsvg/16x16/actions/tag_checkbox.png"
	"$LINKS/share/icons/crystalsvg/16x16/actions/tag_progress_050.png"
	"$LINKS/share/icons/crystalsvg/16x16/actions/tag_fun.png"
	"$LINKS/share/icons/crystalsvg/16x16/actions/tag_progress_025.png"
	"$LINKS/share/icons/crystalsvg/16x16/actions/tag_checkbox_checked.png"
	"$LINKS/share/icons/crystalsvg/16x16/actions/tag_progress_075.png"
	"$LINKS/share/icons/crystalsvg/16x16/actions/tag_priority_low.png"
	"$LINKS/share/icons/crystalsvg/16x16/apps/basket.png"
	"$LINKS/share/icons/crystalsvg/128x128/apps/basket.png"
	"$LINKS/share/icons/crystalsvg/64x64/apps/basket.png"
	"$LINKS/share/icons/crystalsvg/48x48/apps/basket.png"
	"$LINKS/share/icons/crystalsvg/22x22/apps/basket.png"
	"$LINKS/share/icons/crystalsvg/32x32/apps/basket.png"
	"$LINKS/share/icons/crystalsvg/scalable/apps/basket.svg"
)

source_files=(
    "$TARGET/backgrounds/abstract.png"
    "$TARGET/backgrounds/alien-artifact.png"
    "$TARGET/backgrounds/alien-artifact.png.config"
    "$TARGET/backgrounds/basket-title.png"
    "$TARGET/backgrounds/green-curves.png"
    "$TARGET/backgrounds/light.png"
    "$TARGET/backgrounds/painting.png"
    "$TARGET/backgrounds/pens.png"
    "$TARGET/backgrounds/pins.png"
    "$TARGET/backgrounds/rainbow-balls.png"
    "$TARGET/backgrounds/rounds-line.png"
    "$TARGET/backgrounds/todo.png"
    "$TARGET/backgrounds/working.png"
    "$TARGET/backgrounds-previews/abstract.png"
    "$TARGET/backgrounds-previews/alien-artifact.png"
    "$TARGET/backgrounds-previews/basket-title.png"
    "$TARGET/backgrounds-previews/green-curves.png"
    "$TARGET/backgrounds-previews/light.png"
    "$TARGET/backgrounds-previews/painting.png"
    "$TARGET/backgrounds-previews/pens.png"
    "$TARGET/backgrounds-previews/pins.png"
    "$TARGET/backgrounds-previews/rainbow-balls.png"
    "$TARGET/backgrounds-previews/rounds-line.png"
    "$TARGET/backgrounds-previews/todo.png"
    "$TARGET/backgrounds-previews/working.png"
    "$TARGET/images/insertion_help.png"
    "$TARGET/images/tag_export_help.png"
    "$TARGET/src/basket_part.rc"
    "$TARGET/src/basketui.rc"
    "$TARGET/tags/cr16-action-tag_priority_high.png"
    "$TARGET/tags/cr16-action-tag_important.png"
    "$TARGET/tags/cr16-action-tag_for_later.png"
    "$TARGET/tags/cr16-action-tag_preference_excelent.png"
    "$TARGET/tags/cr16-action-tag_priority_medium.png"
    "$TARGET/tags/cr16-action-tag_progress_000.png"
    "$TARGET/tags/cr16-action-tag_progress_100.png"
    "$TARGET/tags/cr16-action-tag_preference_bad.png"
    "$TARGET/tags/cr16-action-tag_preference_good.png"
    "$TARGET/tags/cr16-action-tag_checkbox.png"
    "$TARGET/tags/cr16-action-tag_progress_050.png"
    "$TARGET/tags/cr16-action-tag_fun.png"
    "$TARGET/tags/cr16-action-tag_progress_025.png"
    "$TARGET/tags/cr16-action-tag_checkbox_checked.png"
    "$TARGET/tags/cr16-action-tag_progress_075.png"
    "$TARGET/tags/cr16-action-tag_priority_low.png"
    "$TARGET/kontact_plugin/kontact_basketplugin.setdlg"
    "$TARGET/kontact_plugin/basket.desktop"
    "$TARGET/src/basket_config_general.desktop"
    "$TARGET/src/basket_config_baskets.desktop"
    "$TARGET/src/basket_config_new_notes.desktop"
    "$TARGET/src/basket_config_notes_appearance.desktop"
    "$TARGET/src/basket_config_apps.desktop"
    "$TARGET/src/basket_part.desktop"
    "$TARGET/src/basket.desktop"
    "$BUILD/kontact_plugin/.libs/libkontact_basket.so"
    "$BUILD/kontact_plugin/.libs/libkontact_basket.la"
    "$BUILD/src/.libs/kcm_basket.so"
    "$BUILD/src/.libs/kcm_basket.la"
    "$BUILD/src/.libs/libbasketpart.so"
    "$BUILD/src/.libs/libbasketpart.la"
    "$BUILD/src/.libs/libbasketcommon.so"
    "$BUILD/src/.libs/libbasketcommon.la"
    "$BUILD/src/.libs/basket"
	"$TARGET/src/cr16-action-likeback_dislike.png"
	"$TARGET/src/cr16-action-likeback_like.png"
	"$TARGET/src/cr16-action-likeback_configure.png"
	"$TARGET/tags/cr16-action-tag_priority_high.png"
	"$TARGET/tags/cr16-action-tag_important.png"
	"$TARGET/tags/cr16-action-tag_for_later.png"
	"$TARGET/tags/cr16-action-tag_preference_excelent.png"
	"$TARGET/tags/cr16-action-tag_priority_medium.png"
	"$TARGET/tags/cr16-action-tag_progress_000.png"
	"$TARGET/tags/cr16-action-tag_progress_100.png"
	"$TARGET/tags/cr16-action-tag_preference_bad.png"
	"$TARGET/tags/cr16-action-tag_preference_good.png"
	"$TARGET/tags/cr16-action-tag_checkbox.png"
	"$TARGET/tags/cr16-action-tag_progress_050.png"
	"$TARGET/tags/cr16-action-tag_fun.png"
	"$TARGET/tags/cr16-action-tag_progress_025.png"
	"$TARGET/tags/cr16-action-tag_checkbox_checked.png"
	"$TARGET/tags/cr16-action-tag_progress_075.png"
	"$TARGET/tags/cr16-action-tag_priority_low.png"
	"$TARGET/src/cr16-app-basket.png"
	"$TARGET/src/cr128-app-basket.png"
	"$TARGET/src/cr64-app-basket.png"
	"$TARGET/src/cr48-app-basket.png"
	"$TARGET/src/cr22-app-/basket.png"
	"$TARGET/src/cr32-app-/basket.png"
	"$TARGET/src/crsc-app-basket.svg"
)

function makedir()
{
  if [ ! -d $1 ]; then
    echo "Making dir: $1"
    mkdir -p $1
  fi
}

function softlink()
{
  if [ -L $2 ]; then
    rm $2
  fi
  makedir `dirname $2`
  echo "Linking: $2->$1"
  ln -s $1 $2
}

index=0
element_count=${#source_files[@]}

while [ "$index" -lt "$element_count" ]; do
  softlink "${source_files[$index]}" "${dest_files[$index]}"
  let "index = $index + 1"
done

softlink "$LINKS/lib" "$LINKS/lib64"