| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
if test -z "${SRC_ROOT}"; then |
| 4 |
echo "distro-install-clean-up: No environment set!" |
| 5 |
exit 1 |
| 6 |
fi |
| 7 |
|
| 8 |
export OOO_VENDOR=Debian |
| 9 |
|
| 10 |
BUILDDIR=`pwd` |
| 11 |
FILELISTSDIR="$BUILDDIR/file-lists" |
| 12 |
|
| 13 |
# remove installed file even from the file list |
| 14 |
# Params: file_list file_to_remove |
| 15 |
remove_file() |
| 16 |
{ |
| 17 |
rm -f "$DESTDIR/$2" |
| 18 |
perl -pi -e "s|^$2$||" "$1" |
| 19 |
} |
| 20 |
|
| 21 |
# move one file from one list of files to a second one |
| 22 |
# Params: target_file_list source_file_list file_to_move |
| 23 |
mv_file_between_flists() |
| 24 |
{ |
| 25 |
if grep "^$3\$" $2 >/dev/null 2>&1 ; then |
| 26 |
# \$3 can be regular expression |
| 27 |
grep "^$3\$" $2 >>$1 |
| 28 |
perl -pi -e "s|^$3$||" $2 |
| 29 |
fi |
| 30 |
} |
| 31 |
# add the directories from the source list of files to the target list of |
| 32 |
# file which are used in the target list of files but are missing there |
| 33 |
# Params: target_file_list source_file_list |
| 34 |
add_used_directories() |
| 35 |
{ |
| 36 |
sort -u -r $2 | sed -n "s|^%dir \(.*\)\$|s%^\\\\(\1\\\\).*%\\\\1%p|p" >$2.pattern |
| 37 |
sed -n -f $2.pattern $1 | sort -u | sed "s|^|%dir |" >>$1 |
| 38 |
rm $2.pattern |
| 39 |
sort -u $1 >$1.unique |
| 40 |
mv $1.unique $1 |
| 41 |
} |
| 42 |
|
| 43 |
# remove a duplicity between two filelist |
| 44 |
# Params: filelist_with_original filelist_with_duplicity duplicit_path |
| 45 |
remove_duplicity_from_flists() |
| 46 |
{ |
| 47 |
if grep "$3" "$1" >/dev/null 2>&1 && \ |
| 48 |
grep "$3" "$2" >/dev/null 2>&1 ; then |
| 49 |
perl -pi -e "s|^$3$||" $2 |
| 50 |
fi |
| 51 |
} |
| 52 |
|
| 53 |
# merges one file list into another one |
| 54 |
# Params: source_filelist dest_filelist replace_dest |
| 55 |
merge_flists() |
| 56 |
{ |
| 57 |
if test -f "$1" ; then |
| 58 |
cat "$1" >>"$2" |
| 59 |
sort -u "$2" >"$2".sorted |
| 60 |
mv "$2".sorted "$2" |
| 61 |
fi |
| 62 |
} |
| 63 |
|
| 64 |
if ! test -f $DESTDIR/gid_Module_Root; then |
| 65 |
echo "Error: Failed to generate package file lists"; |
| 66 |
echo " Have you defined DESTDIR?" |
| 67 |
exit |
| 68 |
fi |
| 69 |
|
| 70 |
|
| 71 |
rm -rf "$FILELISTSDIR" |
| 72 |
mkdir -p "$FILELISTSDIR" |
| 73 |
|
| 74 |
cd $DESTDIR |
| 75 |
|
| 76 |
if test "z$OOO_VENDOR" != "zDebian" ; then |
| 77 |
|
| 78 |
echo "Generating package file lists for $OOO_VENDOR..." |
| 79 |
|
| 80 |
rm -f common_list.txt |
| 81 |
for module in gid_Module_Root gid_Module_Root_Brand \ |
| 82 |
gid_Module_Root_Files_[0-9] \ |
| 83 |
gid_Module_Root_Hack \ |
| 84 |
gid_Module_Oo_Linguistic \ |
| 85 |
gid_Module_Root_Extension_Dictionary_* \ |
| 86 |
gid_Module_Root_Ure_Hidden ; do |
| 87 |
merge_flists $module $FILELISTSDIR/common_list.txt |
| 88 |
done |
| 89 |
|
| 90 |
# it is not a real extension; it used to be in the main package... |
| 91 |
merge_flists gid_Module_Optional_Extensions_Script_Provider_For_JS $FILELISTSDIR/common_list.txt |
| 92 |
|
| 93 |
if test "$SPLIT_APP_MODULES" = "TRUE" ; then |
| 94 |
merge_flists gid_Module_Prg_Base_Bin $FILELISTSDIR/base_list.txt |
| 95 |
merge_flists gid_Module_Prg_Calc_Bin $FILELISTSDIR/calc_list.txt |
| 96 |
merge_flists gid_Module_Prg_Draw_Bin $FILELISTSDIR/draw_list.txt |
| 97 |
merge_flists gid_Module_Prg_Math_Bin $FILELISTSDIR/math_list.txt |
| 98 |
merge_flists gid_Module_Prg_Impress_Bin $FILELISTSDIR/impress_list.txt |
| 99 |
merge_flists gid_Module_Prg_Wrt_Bin $FILELISTSDIR/writer_list.txt |
| 100 |
merge_flists gid_Module_Brand_Prg_Base $FILELISTSDIR/base_list.txt |
| 101 |
merge_flists gid_Module_Brand_Prg_Calc $FILELISTSDIR/calc_list.txt |
| 102 |
merge_flists gid_Module_Brand_Prg_Draw $FILELISTSDIR/draw_list.txt |
| 103 |
merge_flists gid_Module_Brand_Prg_Math $FILELISTSDIR/math_list.txt |
| 104 |
merge_flists gid_Module_Brand_Prg_Impress $FILELISTSDIR/impress_list.txt |
| 105 |
merge_flists gid_Module_Brand_Prg_Wrt $FILELISTSDIR/writer_list.txt |
| 106 |
merge_flists gid_Module_Reportbuilder $FILELISTSDIR/base_list.txt |
| 107 |
merge_flists gid_Module_Pdfimport $FILELISTSDIR/draw_list.txt |
| 108 |
|
| 109 |
# FIXME: small; low dependencies; why optional module? |
| 110 |
merge_flists gid_Module_Optional_OGLTrans $FILELISTSDIR/impress_list.txt |
| 111 |
else |
| 112 |
merge_flists gid_Module_Prg_Base_Bin $FILELISTSDIR/common_list.txt |
| 113 |
merge_flists gid_Module_Prg_Calc_Bin $FILELISTSDIR/common_list.txt |
| 114 |
merge_flists gid_Module_Prg_Draw_Bin $FILELISTSDIR/common_list.txt |
| 115 |
merge_flists gid_Module_Prg_Math_Bin $FILELISTSDIR/common_list.txt |
| 116 |
merge_flists gid_Module_Prg_Impress_Bin $FILELISTSDIR/common_list.txt |
| 117 |
merge_flists gid_Module_Prg_Wrt_Bin $FILELISTSDIR/common_list.txt |
| 118 |
merge_flists gid_Module_Brand_Prg_Base $FILELISTSDIR/common_list.txt |
| 119 |
merge_flists gid_Module_Brand_Prg_Calc $FILELISTSDIR/common_list.txt |
| 120 |
merge_flists gid_Module_Brand_Prg_Draw $FILELISTSDIR/common_list.txt |
| 121 |
merge_flists gid_Module_Brand_Prg_Math $FILELISTSDIR/common_list.txt |
| 122 |
merge_flists gid_Module_Brand_Prg_Impress $FILELISTSDIR/common_list.txt |
| 123 |
merge_flists gid_Module_Brand_Prg_Wrt $FILELISTSDIR/common_list.txt |
| 124 |
merge_flists gid_Module_Reportbuilder $FILELISTSDIR/common_list.txt |
| 125 |
merge_flists gid_Module_Pdfimport $FILELISTSDIR/common_list.txt |
| 126 |
# FIXME: small; low dependencies; why optional module? |
| 127 |
merge_flists gid_Module_Optional_OGLTrans $FILELISTSDIR/common_list.txt |
| 128 |
fi |
| 129 |
|
| 130 |
if test "$SPLIT_APP_MODULES" = "TRUE" -a "$OOO_VENDOR" = "SUSE" ; then |
| 131 |
# move the prebuilt icons into a hacky temporary package |
| 132 |
# we want to repack them into a noarch package as soon as possible |
| 133 |
# without the build dependency on the huge devel package |
| 134 |
merge_flists gid_Module_Root_Files_Images $FILELISTSDIR/icon_themes_prebuilt.txt |
| 135 |
else |
| 136 |
merge_flists gid_Module_Root_Files_Images $FILELISTSDIR/common_list.txt |
| 137 |
fi |
| 138 |
|
| 139 |
if test "$SPLIT_OPT_FEATURES" = "TRUE" ; then |
| 140 |
if test "z$OOO_VENDOR" = "zMandriva" ; then |
| 141 |
merge_flists gid_Module_Optional_Grfflt $FILELISTSDIR/draw_list.txt |
| 142 |
merge_flists gid_Module_Optional_Headless $FILELISTSDIR/common_list.txt |
| 143 |
merge_flists gid_Module_Optional_Pymailmerge $FILELISTSDIR/pyuno_list.txt |
| 144 |
merge_flists gid_Module_Pyuno $FILELISTSDIR/pyuno_list.txt |
| 145 |
merge_flists gid_Module_Script_Provider_For_Python $FILELISTSDIR/pyuno_list.txt |
| 146 |
merge_flists gid_Module_Optional_Pyuno_LibreLogo $FILELISTSDIR/pyuno_list.txt |
| 147 |
merge_flists gid_Module_Optional_Xsltfiltersamples $FILELISTSDIR/common_list.txt |
| 148 |
else |
| 149 |
merge_flists gid_Module_Optional_Grfflt $FILELISTSDIR/common_list.txt |
| 150 |
merge_flists gid_Module_Optional_Headless $FILELISTSDIR/common_list.txt |
| 151 |
merge_flists gid_Module_Optional_Pymailmerge $FILELISTSDIR/mailmerge_list.txt |
| 152 |
merge_flists gid_Module_Pyuno $FILELISTSDIR/pyuno_list.txt |
| 153 |
merge_flists gid_Module_Optional_Pyuno_LibreLogo $FILELISTSDIR/pyuno_list.txt |
| 154 |
merge_flists gid_Module_Script_Provider_For_Python $FILELISTSDIR/pyuno_list.txt |
| 155 |
merge_flists gid_Module_Optional_Xsltfiltersamples $FILELISTSDIR/filters_list.txt |
| 156 |
fi |
| 157 |
else |
| 158 |
merge_flists gid_Module_Optional_Grfflt $FILELISTSDIR/common_list.txt |
| 159 |
merge_flists gid_Module_Optional_Headless $FILELISTSDIR/common_list.txt |
| 160 |
merge_flists gid_Module_Optional_Pymailmerge $FILELISTSDIR/common_list.txt |
| 161 |
merge_flists gid_Module_Pyuno $FILELISTSDIR/common_list.txt |
| 162 |
merge_flists gid_Module_Optional_Pyuno_LibreLogo $FILELISTSDIR/common_list.txt |
| 163 |
merge_flists gid_Module_Script_Provider_For_Python $FILELISTSDIR/common_list.txt |
| 164 |
merge_flists gid_Module_Optional_Xsltfiltersamples $FILELISTSDIR/common_list.txt |
| 165 |
fi |
| 166 |
|
| 167 |
# lang packs |
| 168 |
for lang in `echo $WITH_LANG_LIST | sed -e s/-/_/g`; do |
| 169 |
lang_lists= |
| 170 |
if test "$OOO_VENDOR" = "Mandriva" -o \( "$OOO_VENDOR" = "SUSE" -a "$SPLIT_APP_MODULES" = "TRUE" \) ; then |
| 171 |
test -f gid_Module_Langpack_Basis_$lang && lang_lists="$lang_lists gid_Module_Langpack_Basis_$lang" || : |
| 172 |
test -f gid_Module_Langpack_Brand_$lang && lang_lists="$lang_lists gid_Module_Langpack_Brand_$lang" || : |
| 173 |
test -f gid_Module_Langpack_Resource_$lang && lang_lists="$lang_lists gid_Module_Langpack_Resource_$lang" || : |
| 174 |
test -f gid_Module_Langpack_Impress_$lang && lang_lists="$lang_lists gid_Module_Langpack_Impress_$lang" || : |
| 175 |
test -f gid_Module_Langpack_Draw_$lang && lang_lists="$lang_lists gid_Module_Langpack_Draw_$lang" || : |
| 176 |
test -f gid_Module_Langpack_Math_$lang && lang_lists="$lang_lists gid_Module_Langpack_Math_$lang" || : |
| 177 |
test -f gid_Module_Langpack_Calc_$lang && lang_lists="$lang_lists gid_Module_Langpack_Calc_$lang" || : |
| 178 |
test -f gid_Module_Langpack_Base_$lang && lang_lists="$lang_lists gid_Module_Langpack_Base_$lang" || : |
| 179 |
test -f gid_Module_Langpack_Writer_$lang && lang_lists="$lang_lists gid_Module_Langpack_Writer_$lang" || : |
| 180 |
# Place helps on dedicated packages. |
| 181 |
test -f gid_Module_Helppack_Help_$lang && sort -u gid_Module_Helppack_Help_$lang > $FILELISTSDIR/help_${lang}_list.txt || : |
| 182 |
else |
| 183 |
test -f gid_Module_Langpack_Basis_$lang && lang_lists="$lang_lists gid_Module_Langpack_Basis_$lang" || : |
| 184 |
test -f gid_Module_Langpack_Brand_$lang && lang_lists="$lang_lists gid_Module_Langpack_Brand_$lang" || : |
| 185 |
test -f gid_Module_Langpack_Resource_$lang && lang_lists="$lang_lists gid_Module_Langpack_Resource_$lang" || : |
| 186 |
test -f gid_Module_Langpack_Impress_$lang && lang_lists="$lang_lists gid_Module_Langpack_Impress_$lang" || : |
| 187 |
test -f gid_Module_Langpack_Draw_$lang && lang_lists="$lang_lists gid_Module_Langpack_Draw_$lang" || : |
| 188 |
test -f gid_Module_Langpack_Math_$lang && lang_lists="$lang_lists gid_Module_Langpack_Math_$lang" || : |
| 189 |
test -f gid_Module_Langpack_Calc_$lang && lang_lists="$lang_lists gid_Module_Langpack_Calc_$lang" || : |
| 190 |
test -f gid_Module_Langpack_Base_$lang && lang_lists="$lang_lists gid_Module_Langpack_Base_$lang" || : |
| 191 |
test -f gid_Module_Langpack_Writer_$lang && lang_lists="$lang_lists gid_Module_Langpack_Writer_$lang" || : |
| 192 |
test -f gid_Module_Helppack_Help_$lang && lang_lists="$lang_lists gid_Module_Helppack_Help_$lang" || : |
| 193 |
fi |
| 194 |
if test -n "$lang_lists" ; then |
| 195 |
# all files are installed below $INSTALLDIR/basis; we want to own also $INSTALLDIR |
| 196 |
echo "%dir $INSTALLDIR" >$FILELISTSDIR/lang_${lang}_list.txt |
| 197 |
cat $lang_lists | sort -u >>$FILELISTSDIR/lang_${lang}_list.txt |
| 198 |
fi |
| 199 |
# some help files are in _Langpack_{Writer,Impress,...}_<lang> |
| 200 |
# move them from -l10n to -help |
| 201 |
if test "$OOO_VENDOR" = "Mandriva" -o \( "$OOO_VENDOR" = "SUSE" -a "$SPLIT_APP_MODULES" = "TRUE" \) ; then |
| 202 |
for lang in `echo $WITH_LANG_LIST | sed -e s/-/_/g`; do |
| 203 |
test -f $FILELISTSDIR/help_${lang}_list.txt || continue; |
| 204 |
mv_file_between_flists $FILELISTSDIR/help_${lang}_list.txt $FILELISTSDIR/lang_${lang}_list.txt $INSTALLDIR/help/.* |
| 205 |
add_used_directories $FILELISTSDIR/help_${lang}_list.txt $FILELISTSDIR/lang_${lang}_list.txt |
| 206 |
done |
| 207 |
fi |
| 208 |
done |
| 209 |
|
| 210 |
if test -f $FILELISTSDIR/lang_en_US_list.txt -a "$OOO_VENDOR" = "SUSE" -a "$SPLIT_APP_MODULES" != "TRUE" ; then |
| 211 |
cat $FILELISTSDIR/lang_en_US_list.txt >>$FILELISTSDIR/common_list.txt |
| 212 |
rm $FILELISTSDIR/lang_en_US_list.txt |
| 213 |
fi |
| 214 |
|
| 215 |
if test -f gid_Module_Root_SDK ; then |
| 216 |
cp gid_Module_Root_SDK $FILELISTSDIR/sdk_list.txt |
| 217 |
fi |
| 218 |
|
| 219 |
cd $FILELISTSDIR |
| 220 |
|
| 221 |
# gnome subpackage |
| 222 |
test -f $DESTDIR/gid_Module_Optional_Gnome && cp $DESTDIR/gid_Module_Optional_Gnome gnome_list.txt || : |
| 223 |
mv_file_between_flists gnome_list.txt common_list.txt $INSTALLDIR/program/libevoab2.so |
| 224 |
mv_file_between_flists gnome_list.txt common_list.txt $INSTALLDIR/program/libvclplug_gtk[0-9]*l..so |
| 225 |
add_used_directories gnome_list.txt common_list.txt |
| 226 |
|
| 227 |
# mono subpackage |
| 228 |
mv_file_between_flists mono_list.txt common_list.txt $INSTALLDIR/program/cli_.*.dll |
| 229 |
mv_file_between_flists mono_list.txt common_list.txt $INSTALLDIR/program/cli_.*.dll.config |
| 230 |
mv_file_between_flists mono_list.txt common_list.txt $INSTALLDIR/program/policy.*.cli_.*.dll |
| 231 |
mv_file_between_flists mono_list.txt common_list.txt $INSTALLDIR/program/cli_.*.dll |
| 232 |
mv_file_between_flists mono_list.txt common_list.txt $INSTALLDIR/program/cli_.*.dll.config |
| 233 |
mv_file_between_flists mono_list.txt common_list.txt $INSTALLDIR/program/policy.*.cli_.*.dll |
| 234 |
mv_file_between_flists mono_list.txt common_list.txt $INSTALLDIR/program/libcli_.*.so |
| 235 |
add_used_directories mono_list.txt common_list.txt |
| 236 |
# add the files from GAC if it was installed |
| 237 |
test -f mono_gac && cat mono_gac >>mono_list.txt |
| 238 |
|
| 239 |
# postgresql subpackage |
| 240 |
test -f $DESTDIR/gid_Module_Optional_PostgresqlSdbc && cp $DESTDIR/gid_Module_Optional_PostgresqlSdbc postgresql_list.txt || : |
| 241 |
|
| 242 |
# mailmerge |
| 243 |
if test "$SPLIT_OPT_FEATURES" = "TRUE" ; then |
| 244 |
if test "z$OOO_VENDOR" = "zMandriva" ; then |
| 245 |
flist=pyuno_list.txt |
| 246 |
else |
| 247 |
flist=mailmerge_list.txt |
| 248 |
fi |
| 249 |
mv_file_between_flists $flist common_list.txt $INSTALLDIR/program/mailmerge.py |
| 250 |
add_used_directories $flist common_list.txt |
| 251 |
fi |
| 252 |
|
| 253 |
if test "z$OOO_VENDOR" = "zSUSE" ; then |
| 254 |
# officebean subpackage |
| 255 |
test -f $DESTDIR/gid_Module_Optional_Extensions_Script_Provider_For_BS && cp $DESTDIR/gid_Module_Optional_Extensions_Script_Provider_For_BS officebean_list.txt || : |
| 256 |
mv_file_between_flists officebean_list.txt common_list.txt $INSTALLDIR/program/classes/officebean.jar |
| 257 |
mv_file_between_flists officebean_list.txt common_list.txt $INSTALLDIR/program/libofficebean.so |
| 258 |
add_used_directories officebean_list.txt common_list.txt |
| 259 |
fi |
| 260 |
|
| 261 |
if test -f sdk_list.txt ; then |
| 262 |
# in this case we move all entries including directories |
| 263 |
mv_file_between_flists sdk_doc_list.txt sdk_list.txt "%dir $DOCDIR/sdk/docs.*" |
| 264 |
mv_file_between_flists sdk_doc_list.txt sdk_list.txt "$DOCDIR/sdk/docs.*" |
| 265 |
mv_file_between_flists sdk_doc_list.txt sdk_list.txt "$DOCDIR/sdk/examples" |
| 266 |
mv_file_between_flists sdk_doc_list.txt sdk_list.txt "$DOCDIR/sdk/index.html" |
| 267 |
mv_file_between_flists sdk_doc_list.txt sdk_list.txt "%dir $INSTALLDIR/sdk/examples.*" |
| 268 |
mv_file_between_flists sdk_doc_list.txt sdk_list.txt "$INSTALLDIR/sdk/docs" |
| 269 |
mv_file_between_flists sdk_doc_list.txt sdk_list.txt "$INSTALLDIR/sdk/examples.*" |
| 270 |
mv_file_between_flists sdk_doc_list.txt sdk_list.txt "$INSTALLDIR/sdk/index.html" |
| 271 |
add_used_directories sdk_doc_list.txt sdk_list.txt |
| 272 |
fi |
| 273 |
|
| 274 |
|
| 275 |
# Mandriva packaging |
| 276 |
if test "$OOO_VENDOR" = "Mandriva"; then |
| 277 |
# Not used |
| 278 |
remove_file common_list.txt $INSTALLDIR/share/gallery/htmltheme.orig |
| 279 |
remove_file common_list.txt $INSTALLDIR/share/dict/ooo/dictionary.lst |
| 280 |
|
| 281 |
# And these are in -draw package |
| 282 |
mv_file_between_flists draw_list.txt common_list.txt $INSTALLDIR/share/registry/modules/org/openoffice/TypeDetection/Filter/fcfg_drawgraphics_filters.xcu |
| 283 |
mv_file_between_flists draw_list.txt common_list.txt $INSTALLDIR/share/registry/modules/org/openoffice/TypeDetection/Filter/fcfg_drawgraphics_types.xcu |
| 284 |
|
| 285 |
# And these are in -impress package |
| 286 |
mv_file_between_flists impress_list.txt common_list.txt $INSTALLDIR/share/registry/modules/org/openoffice/TypeDetection/Filter/fcfg_impressgraphics_filters.xcu |
| 287 |
mv_file_between_flists impress_list.txt common_list.txt $INSTALLDIR/share/registry/modules/org/openoffice/TypeDetection/Types/fcfg_impressgraphics_types.xcu |
| 288 |
|
| 289 |
# Split out the gallery |
| 290 |
mv_file_between_flists gallery_list.txt common_list.txt "$INSTALLDIR/share/gallery.*" |
| 291 |
test -r galleries.txt && cat galleries.txt >> gallery_list.txt |
| 292 |
|
| 293 |
# Split out dtd-officedocument1.0 |
| 294 |
mv_file_between_flists dtd_list.txt common_list.txt "$INSTALLDIR/share/dtd/officedocument.*" |
| 295 |
|
| 296 |
# Split out java stuff |
| 297 |
mv_file_between_flists java_common_list.txt common_list.txt $INSTALLDIR/program/JREProperties.class |
| 298 |
mv_file_between_flists java_common_list.txt common_list.txt "$INSTALLDIR/program/classes.*" |
| 299 |
mv_file_between_flists java_common_list.txt common_list.txt $INSTALLDIR/program/libofficebean.so |
| 300 |
mv_file_between_flists java_common_list.txt common_list.txt "$INSTALLDIR/share/Scripts/java.*" |
| 301 |
|
| 302 |
# Move arch-dependent/dup files from common to core |
| 303 |
for f in \ |
| 304 |
".*\.so" \ |
| 305 |
".*\.so\..*" \ |
| 306 |
"program/.*\.rdb" \ |
| 307 |
program/configimport.bin \ |
| 308 |
program/javaldx \ |
| 309 |
program/msfontextract \ |
| 310 |
program/oosplash.bin \ |
| 311 |
program/pagein \ |
| 312 |
program/pagein-calc \ |
| 313 |
program/pagein-common \ |
| 314 |
program/pagein-draw \ |
| 315 |
program/pagein-impress \ |
| 316 |
program/pagein-writer \ |
| 317 |
program/pkgchk.bin \ |
| 318 |
program/pluginapp.bin \ |
| 319 |
program/setofficelang.bin \ |
| 320 |
program/soffice.bin \ |
| 321 |
program/uno.bin \ |
| 322 |
program/unopkg.bin \ |
| 323 |
program/uri-encode |
| 324 |
do |
| 325 |
mv_file_between_flists core_list.txt common_list.txt "$INSTALLDIR/$f" |
| 326 |
done |
| 327 |
|
| 328 |
# themes are included in other packages |
| 329 |
# don't use remove_file as we don't want them removed from the buildroot. |
| 330 |
mv_file_between_flists /dev/null common_list.txt $INSTALLDIR/share/config/images_crystal.zip |
| 331 |
mv_file_between_flists /dev/null common_list.txt $INSTALLDIR/share/config/images_hicontrast.zip |
| 332 |
mv_file_between_flists /dev/null common_list.txt $INSTALLDIR/share/config/images.zip |
| 333 |
fi |
| 334 |
|
| 335 |
# remove known duplicities to do not have files packaged in two packages |
| 336 |
# the Bulgarian fixes can be removed after the issue #54110 is fixed |
| 337 |
remove_duplicity_from_flists common_list.txt lang_bg_list.txt $INSTALLDIR/presets/config/arrowhd.soe |
| 338 |
remove_duplicity_from_flists common_list.txt lang_bg_list.txt $INSTALLDIR/presets/config/classic.sog |
| 339 |
remove_duplicity_from_flists common_list.txt lang_bg_list.txt $INSTALLDIR/presets/config/hatching.soh |
| 340 |
remove_duplicity_from_flists common_list.txt lang_bg_list.txt $INSTALLDIR/presets/config/modern.sog |
| 341 |
remove_duplicity_from_flists common_list.txt lang_bg_list.txt $INSTALLDIR/presets/config/palette.soc |
| 342 |
remove_duplicity_from_flists common_list.txt lang_bg_list.txt $INSTALLDIR/presets/config/styles.sod |
| 343 |
# the British fixes can be removed after the issue #54113 is fixed |
| 344 |
remove_duplicity_from_flists common_list.txt lang_en-GB_list.txt $INSTALLDIR/presets/config/standard.sog |
| 345 |
fi |
| 346 |
|
| 347 |
# mark the config files |
| 348 |
RPM_CONFIG_FILE_TAGS= |
| 349 |
if test "$OOO_VENDOR" = "SUSE" -o "$OOO_VENDOR" = "RedHat"; then |
| 350 |
RPM_CONFIG_FILE_TAGS="%config" |
| 351 |
elif test "$OOO_VENDOR" = "PLD" ; then |
| 352 |
RPM_CONFIG_FILE_TAGS="%config(noreplace) %verify(not md5 size mtime)" |
| 353 |
fi |
| 354 |
|
| 355 |
if test "z$RPM_CONFIG_FILE_TAGS" != "z" ; then |
| 356 |
cd $FILELISTSDIR |
| 357 |
perl -pi -e "s|^($INSTALLDIR/help/.*\.xsl)\$|$RPM_CONFIG_FILE_TAGS \\1|;" \ |
| 358 |
-e "s|^($INSTALLDIR/help/.*\.css)\$|$RPM_CONFIG_FILE_TAGS \\1|;" \ |
| 359 |
-e "s|^($INSTALLDIR/program/[a-zA-Z0-9_\.]*rc)\$|$RPM_CONFIG_FILE_TAGS \\1|;" \ |
| 360 |
-e "s|^($INSTALLDIR/program/.*\.xsl)\$|$RPM_CONFIG_FILE_TAGS \\1|;" \ |
| 361 |
-e "s|^($INSTALLDIR/share/config/[a-zA-Z0-9]*rc)\$|$RPM_CONFIG_FILE_TAGS \\1|;" \ |
| 362 |
-e "s|^($INSTALLDIR/share/dict/ooo/.*\.lst)\$|$RPM_CONFIG_FILE_TAGS \\1|;" \ |
| 363 |
-e "s|^($INSTALLDIR/share/psprint/.*\.conf)\$|$RPM_CONFIG_FILE_TAGS \\1|;" \ |
| 364 |
-e "s|^($INSTALLDIR/share/registry/.*\.xcu)\$|$RPM_CONFIG_FILE_TAGS \\1|;" \ |
| 365 |
-e "s|^($INSTALLDIR/share/registry/.*\.properties)\$|$RPM_CONFIG_FILE_TAGS \\1|;" \ |
| 366 |
-e "s|^($INSTALLDIR/share/registry/.*\.xcs)\$|$RPM_CONFIG_FILE_TAGS \\1|;" \ |
| 367 |
-e "s|^($INSTALLDIR/user/config/.*\.so.)\$|$RPM_CONFIG_FILE_TAGS \\1|;" \ |
| 368 |
*_list.txt |
| 369 |
fi |
| 370 |
|
| 371 |
mkdir -p $FILELISTSDIR/orig |
| 372 |
mv -f $DESTDIR/gid_Module_* $FILELISTSDIR/orig |