File: distro-install-file-lists

package info (click to toggle)
libreoffice 1:6.1.5-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,699,584 kB
  • sloc: cpp: 4,078,558; xml: 324,485; java: 281,935; python: 48,236; ansic: 36,476; perl: 32,383; sh: 13,671; yacc: 10,820; makefile: 9,085; cs: 6,600; lex: 2,184; objc: 1,904; awk: 978; pascal: 949; asm: 866; php: 79; csh: 20; sed: 5
file content (383 lines) | stat: -rwxr-xr-x 20,803 bytes parent folder | download | duplicates (5)
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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
#!/bin/sh

if test -z "${SRC_ROOT}"; then
    echo "distro-install-clean-up: No environment set!"
    exit 1
fi

export OOO_VENDOR=Debian

BUILDDIR=`pwd`
FILELISTSDIR="$BUILDDIR/file-lists"

# remove installed file even from the file list
# Params: file_list file_to_remove
remove_file()
{
    rm -f "$DESTDIR/$2"
    perl -pi -e "s|^$2$||" "$1"
}

# move one file from one list of files to a second one
# Params: target_file_list source_file_list file_to_move
mv_file_between_flists()
{
    if grep "^$3\$" $2 >/dev/null 2>&1 ; then
        # \$3 can be regular expression
        grep "^$3\$" $2 >>$1
        perl -pi -e "s|^$3$||" $2
    fi
}
# add the directories from the source list of files to the target list of
# file which are used in the target list of files but are missing there
# Params: target_file_list source_file_list
add_used_directories()
{
    sort -u -r $2 | sed -n "s|^%dir \(.*\)\$|s%^\\\\(\1\\\\).*%\\\\1%p|p" >$2.pattern
    sed -n -f $2.pattern $1 | sort -u | sed "s|^|%dir |" >>$1
    rm $2.pattern
    sort -u $1 >$1.unique
    mv $1.unique $1
}

# remove a duplicity between two filelist
# Params: filelist_with_original filelist_with_duplicity duplicit_path
remove_duplicity_from_flists()
{
    if grep "$3" "$1" >/dev/null 2>&1 && \
        grep "$3" "$2" >/dev/null 2>&1 ; then
        perl -pi -e "s|^$3$||" $2
    fi
}

# merges one file list into another one
# Params: source_filelist dest_filelist replace_dest
merge_flists()
{
    if test -f "$1" ; then
        cat "$1" >>"$2"
        sort -u "$2" >"$2".sorted
        mv "$2".sorted "$2"
    fi
}

if ! test -f $DESTDIR/gid_Module_Root; then
    echo "Error: Failed to generate package file lists";
    echo "       Have you defined DESTDIR?"
    exit
fi


rm -rf "$FILELISTSDIR"
mkdir -p "$FILELISTSDIR"

cd $DESTDIR

if test "z$OOO_VENDOR" != "zDebian" ; then

    echo "Generating package file lists for $OOO_VENDOR..."

    rm -f common_list.txt
    for module in gid_Module_Root gid_Module_Root_Brand \
        gid_Module_Root_Files_[0-9] \
        gid_Module_Root_Hack \
        gid_Module_Oo_Linguistic \
        gid_Module_Root_Extension_Dictionary_* \
        gid_Module_Root_Ure_Hidden ; do
        merge_flists $module $FILELISTSDIR/common_list.txt
    done

    # it is not a real extension; it used to be in the main package...
    merge_flists gid_Module_Optional_Extensions_Script_Provider_For_JS $FILELISTSDIR/common_list.txt

    if test "$SPLIT_APP_MODULES" = "TRUE" ; then
        merge_flists gid_Module_Prg_Base_Bin      $FILELISTSDIR/base_list.txt
        merge_flists gid_Module_Prg_Calc_Bin      $FILELISTSDIR/calc_list.txt
        merge_flists gid_Module_Prg_Draw_Bin      $FILELISTSDIR/draw_list.txt
        merge_flists gid_Module_Prg_Math_Bin      $FILELISTSDIR/math_list.txt
        merge_flists gid_Module_Prg_Impress_Bin   $FILELISTSDIR/impress_list.txt
        merge_flists gid_Module_Prg_Wrt_Bin       $FILELISTSDIR/writer_list.txt
        merge_flists gid_Module_Brand_Prg_Base    $FILELISTSDIR/base_list.txt
        merge_flists gid_Module_Brand_Prg_Calc    $FILELISTSDIR/calc_list.txt
        merge_flists gid_Module_Brand_Prg_Draw    $FILELISTSDIR/draw_list.txt
        merge_flists gid_Module_Brand_Prg_Math    $FILELISTSDIR/math_list.txt
        merge_flists gid_Module_Brand_Prg_Impress $FILELISTSDIR/impress_list.txt
        merge_flists gid_Module_Brand_Prg_Wrt     $FILELISTSDIR/writer_list.txt
        merge_flists gid_Module_Reportbuilder     $FILELISTSDIR/base_list.txt
        merge_flists gid_Module_Pdfimport         $FILELISTSDIR/draw_list.txt

        # FIXME: small; low dependencies; why optional module?
        merge_flists gid_Module_Optional_OGLTrans $FILELISTSDIR/impress_list.txt
    else
        merge_flists gid_Module_Prg_Base_Bin      $FILELISTSDIR/common_list.txt
        merge_flists gid_Module_Prg_Calc_Bin      $FILELISTSDIR/common_list.txt
        merge_flists gid_Module_Prg_Draw_Bin      $FILELISTSDIR/common_list.txt
        merge_flists gid_Module_Prg_Math_Bin      $FILELISTSDIR/common_list.txt
        merge_flists gid_Module_Prg_Impress_Bin   $FILELISTSDIR/common_list.txt
        merge_flists gid_Module_Prg_Wrt_Bin       $FILELISTSDIR/common_list.txt
        merge_flists gid_Module_Brand_Prg_Base    $FILELISTSDIR/common_list.txt
        merge_flists gid_Module_Brand_Prg_Calc    $FILELISTSDIR/common_list.txt
        merge_flists gid_Module_Brand_Prg_Draw    $FILELISTSDIR/common_list.txt
        merge_flists gid_Module_Brand_Prg_Math    $FILELISTSDIR/common_list.txt
        merge_flists gid_Module_Brand_Prg_Impress $FILELISTSDIR/common_list.txt
        merge_flists gid_Module_Brand_Prg_Wrt     $FILELISTSDIR/common_list.txt
        merge_flists gid_Module_Reportbuilder     $FILELISTSDIR/common_list.txt
        merge_flists gid_Module_Pdfimport         $FILELISTSDIR/common_list.txt
        # FIXME: small; low dependencies; why optional module?
        merge_flists gid_Module_Optional_OGLTrans $FILELISTSDIR/common_list.txt
    fi

    if test "$SPLIT_APP_MODULES" = "TRUE" -a "$OOO_VENDOR" = "SUSE" ; then
        # move the prebuilt icons into a hacky temporary package
        # we want to repack them into a noarch package as soon as possible
        # without the build dependency on the huge devel package
        merge_flists gid_Module_Root_Files_Images $FILELISTSDIR/icon_themes_prebuilt.txt
    else
        merge_flists gid_Module_Root_Files_Images $FILELISTSDIR/common_list.txt
    fi

    if test "$SPLIT_OPT_FEATURES" = "TRUE" ; then
        if test "z$OOO_VENDOR" = "zMandriva" ; then
            merge_flists gid_Module_Optional_Grfflt            $FILELISTSDIR/draw_list.txt
            merge_flists gid_Module_Optional_Headless          $FILELISTSDIR/common_list.txt
            merge_flists gid_Module_Optional_Pymailmerge       $FILELISTSDIR/pyuno_list.txt
            merge_flists gid_Module_Pyuno                      $FILELISTSDIR/pyuno_list.txt
            merge_flists gid_Module_Script_Provider_For_Python $FILELISTSDIR/pyuno_list.txt
            merge_flists gid_Module_Optional_Pyuno_LibreLogo   $FILELISTSDIR/pyuno_list.txt
            merge_flists gid_Module_Optional_Xsltfiltersamples $FILELISTSDIR/common_list.txt
        else
            merge_flists gid_Module_Optional_Grfflt            $FILELISTSDIR/common_list.txt
            merge_flists gid_Module_Optional_Headless          $FILELISTSDIR/common_list.txt
            merge_flists gid_Module_Optional_Pymailmerge       $FILELISTSDIR/mailmerge_list.txt
            merge_flists gid_Module_Pyuno                      $FILELISTSDIR/pyuno_list.txt
            merge_flists gid_Module_Optional_Pyuno_LibreLogo   $FILELISTSDIR/pyuno_list.txt
            merge_flists gid_Module_Script_Provider_For_Python $FILELISTSDIR/pyuno_list.txt
            merge_flists gid_Module_Optional_Xsltfiltersamples $FILELISTSDIR/filters_list.txt
        fi
    else
        merge_flists gid_Module_Optional_Grfflt            $FILELISTSDIR/common_list.txt
        merge_flists gid_Module_Optional_Headless          $FILELISTSDIR/common_list.txt
        merge_flists gid_Module_Optional_Pymailmerge       $FILELISTSDIR/common_list.txt
        merge_flists gid_Module_Pyuno                      $FILELISTSDIR/common_list.txt
        merge_flists gid_Module_Optional_Pyuno_LibreLogo   $FILELISTSDIR/common_list.txt
        merge_flists gid_Module_Script_Provider_For_Python $FILELISTSDIR/common_list.txt
        merge_flists gid_Module_Optional_Xsltfiltersamples $FILELISTSDIR/common_list.txt
    fi

    # lang packs
    for lang in `echo $WITH_LANG_LIST | sed -e s/-/_/g`; do
        lang_lists=
        if test "$OOO_VENDOR" = "Mandriva" -o \( "$OOO_VENDOR" = "SUSE" -a "$SPLIT_APP_MODULES" = "TRUE" \) ; then
            test -f gid_Module_Langpack_Basis_$lang     && lang_lists="$lang_lists gid_Module_Langpack_Basis_$lang" || :
            test -f gid_Module_Langpack_Brand_$lang     && lang_lists="$lang_lists gid_Module_Langpack_Brand_$lang" || :
            test -f gid_Module_Langpack_Resource_$lang  && lang_lists="$lang_lists gid_Module_Langpack_Resource_$lang" || :
            test -f gid_Module_Langpack_Impress_$lang   && lang_lists="$lang_lists gid_Module_Langpack_Impress_$lang" || :
            test -f gid_Module_Langpack_Draw_$lang      && lang_lists="$lang_lists gid_Module_Langpack_Draw_$lang" || :
            test -f gid_Module_Langpack_Math_$lang      && lang_lists="$lang_lists gid_Module_Langpack_Math_$lang" || :
            test -f gid_Module_Langpack_Calc_$lang      && lang_lists="$lang_lists gid_Module_Langpack_Calc_$lang" || :
            test -f gid_Module_Langpack_Base_$lang      && lang_lists="$lang_lists gid_Module_Langpack_Base_$lang" || :
            test -f gid_Module_Langpack_Writer_$lang    && lang_lists="$lang_lists gid_Module_Langpack_Writer_$lang" || :
            # Place helps on dedicated packages.
            test -f gid_Module_Helppack_Help_$lang      && sort -u gid_Module_Helppack_Help_$lang > $FILELISTSDIR/help_${lang}_list.txt || :
        else
            test -f gid_Module_Langpack_Basis_$lang     && lang_lists="$lang_lists gid_Module_Langpack_Basis_$lang" || :
            test -f gid_Module_Langpack_Brand_$lang     && lang_lists="$lang_lists gid_Module_Langpack_Brand_$lang" || :
            test -f gid_Module_Langpack_Resource_$lang  && lang_lists="$lang_lists gid_Module_Langpack_Resource_$lang" || :
            test -f gid_Module_Langpack_Impress_$lang   && lang_lists="$lang_lists gid_Module_Langpack_Impress_$lang" || :
            test -f gid_Module_Langpack_Draw_$lang      && lang_lists="$lang_lists gid_Module_Langpack_Draw_$lang" || :
            test -f gid_Module_Langpack_Math_$lang      && lang_lists="$lang_lists gid_Module_Langpack_Math_$lang" || :
            test -f gid_Module_Langpack_Calc_$lang      && lang_lists="$lang_lists gid_Module_Langpack_Calc_$lang" || :
            test -f gid_Module_Langpack_Base_$lang      && lang_lists="$lang_lists gid_Module_Langpack_Base_$lang" || :
            test -f gid_Module_Langpack_Writer_$lang    && lang_lists="$lang_lists gid_Module_Langpack_Writer_$lang" || :
            test -f gid_Module_Helppack_Help_$lang      && lang_lists="$lang_lists gid_Module_Helppack_Help_$lang" || :
        fi
        if test -n "$lang_lists" ; then
            # all files are installed below $INSTALLDIR/basis; we want to own also $INSTALLDIR
            echo "%dir $INSTALLDIR" >$FILELISTSDIR/lang_${lang}_list.txt
            cat $lang_lists | sort -u >>$FILELISTSDIR/lang_${lang}_list.txt
        fi
        # some help files are in _Langpack_{Writer,Impress,...}_<lang>
        # move them from -l10n to -help
        if test "$OOO_VENDOR" = "Mandriva" -o \( "$OOO_VENDOR" = "SUSE" -a "$SPLIT_APP_MODULES" = "TRUE" \) ; then
            for lang in `echo $WITH_LANG_LIST | sed -e s/-/_/g`; do
                test -f $FILELISTSDIR/help_${lang}_list.txt || continue;
                mv_file_between_flists $FILELISTSDIR/help_${lang}_list.txt $FILELISTSDIR/lang_${lang}_list.txt $INSTALLDIR/help/.*
                add_used_directories $FILELISTSDIR/help_${lang}_list.txt $FILELISTSDIR/lang_${lang}_list.txt
            done
        fi
    done

    if test -f $FILELISTSDIR/lang_en_US_list.txt -a "$OOO_VENDOR" = "SUSE" -a "$SPLIT_APP_MODULES" != "TRUE" ; then
        cat $FILELISTSDIR/lang_en_US_list.txt >>$FILELISTSDIR/common_list.txt
        rm $FILELISTSDIR/lang_en_US_list.txt
    fi

    if test -f gid_Module_Root_SDK ; then
        cp gid_Module_Root_SDK $FILELISTSDIR/sdk_list.txt
    fi

    cd $FILELISTSDIR

    # create kde4 subpackage
    test -f $DESTDIR/gid_Module_Optional_Kde && cp $DESTDIR/gid_Module_Optional_Kde kde4_list.txt || :
    mv_file_between_flists kde4_list.txt common_list.txt $INSTALLDIR/program/libvclplug_kde4l..so
    mv_file_between_flists kde4_list.txt common_list.txt $INSTALLDIR/program/fps_kde4lo.so
    add_used_directories kde4_list.txt common_list.txt

    # gnome subpackage
    test -f $DESTDIR/gid_Module_Optional_Gnome && cp $DESTDIR/gid_Module_Optional_Gnome gnome_list.txt || :
    mv_file_between_flists gnome_list.txt common_list.txt $INSTALLDIR/program/libevoab2.so
    mv_file_between_flists gnome_list.txt common_list.txt $INSTALLDIR/program/libvclplug_gtk[0-9]*l..so
    add_used_directories gnome_list.txt common_list.txt

    # mono subpackage
    mv_file_between_flists mono_list.txt common_list.txt $INSTALLDIR/program/cli_.*.dll
    mv_file_between_flists mono_list.txt common_list.txt $INSTALLDIR/program/cli_.*.dll.config
    mv_file_between_flists mono_list.txt common_list.txt $INSTALLDIR/program/policy.*.cli_.*.dll
    mv_file_between_flists mono_list.txt common_list.txt $INSTALLDIR/program/cli_.*.dll
    mv_file_between_flists mono_list.txt common_list.txt $INSTALLDIR/program/cli_.*.dll.config
    mv_file_between_flists mono_list.txt common_list.txt $INSTALLDIR/program/policy.*.cli_.*.dll
    mv_file_between_flists mono_list.txt common_list.txt $INSTALLDIR/program/libcli_.*.so
    add_used_directories mono_list.txt common_list.txt
    # add the files from GAC if it was installed
    test -f mono_gac && cat mono_gac >>mono_list.txt

    # postgresql subpackage
    test -f $DESTDIR/gid_Module_Optional_PostgresqlSdbc && cp $DESTDIR/gid_Module_Optional_PostgresqlSdbc postgresql_list.txt || :

    # mailmerge
    if test "$SPLIT_OPT_FEATURES" = "TRUE" ; then
        if test "z$OOO_VENDOR" = "zMandriva" ; then
            flist=pyuno_list.txt
        else
            flist=mailmerge_list.txt
        fi
        mv_file_between_flists $flist common_list.txt $INSTALLDIR/program/mailmerge.py
        add_used_directories $flist common_list.txt
    fi

    if test "z$OOO_VENDOR" = "zSUSE" ; then
        # officebean subpackage
        test -f $DESTDIR/gid_Module_Optional_Extensions_Script_Provider_For_BS && cp $DESTDIR/gid_Module_Optional_Extensions_Script_Provider_For_BS officebean_list.txt || :
        mv_file_between_flists officebean_list.txt common_list.txt $INSTALLDIR/program/classes/officebean.jar
        mv_file_between_flists officebean_list.txt common_list.txt $INSTALLDIR/program/libofficebean.so
        add_used_directories officebean_list.txt common_list.txt
    fi

    if test -f sdk_list.txt ; then
        # in this case we move all entries including directories
        mv_file_between_flists sdk_doc_list.txt sdk_list.txt "%dir $DOCDIR/sdk/docs.*"
        mv_file_between_flists sdk_doc_list.txt sdk_list.txt "$DOCDIR/sdk/docs.*"
        mv_file_between_flists sdk_doc_list.txt sdk_list.txt "$DOCDIR/sdk/examples"
        mv_file_between_flists sdk_doc_list.txt sdk_list.txt "$DOCDIR/sdk/index.html"
        mv_file_between_flists sdk_doc_list.txt sdk_list.txt "%dir $INSTALLDIR/sdk/examples.*"
        mv_file_between_flists sdk_doc_list.txt sdk_list.txt "$INSTALLDIR/sdk/docs"
        mv_file_between_flists sdk_doc_list.txt sdk_list.txt "$INSTALLDIR/sdk/examples.*"
        mv_file_between_flists sdk_doc_list.txt sdk_list.txt "$INSTALLDIR/sdk/index.html"
        add_used_directories sdk_doc_list.txt sdk_list.txt
    fi


    # Mandriva packaging
    if test "$OOO_VENDOR" = "Mandriva"; then
        # Not used
        remove_file common_list.txt $INSTALLDIR/share/gallery/htmltheme.orig
        remove_file common_list.txt $INSTALLDIR/share/dict/ooo/dictionary.lst

        # And these are in -draw package
        mv_file_between_flists draw_list.txt common_list.txt $INSTALLDIR/share/registry/modules/org/openoffice/TypeDetection/Filter/fcfg_drawgraphics_filters.xcu
        mv_file_between_flists draw_list.txt common_list.txt $INSTALLDIR/share/registry/modules/org/openoffice/TypeDetection/Filter/fcfg_drawgraphics_types.xcu

        # And these are in -impress package
        mv_file_between_flists impress_list.txt common_list.txt $INSTALLDIR/share/registry/modules/org/openoffice/TypeDetection/Filter/fcfg_impressgraphics_filters.xcu
        mv_file_between_flists impress_list.txt common_list.txt $INSTALLDIR/share/registry/modules/org/openoffice/TypeDetection/Types/fcfg_impressgraphics_types.xcu

        # Split out the gallery
        mv_file_between_flists gallery_list.txt common_list.txt "$INSTALLDIR/share/gallery.*"
        test -r galleries.txt && cat galleries.txt >> gallery_list.txt

        # Split out dtd-officedocument1.0
        mv_file_between_flists dtd_list.txt common_list.txt "$INSTALLDIR/share/dtd/officedocument.*"

        # Split out java stuff
        mv_file_between_flists java_common_list.txt common_list.txt $INSTALLDIR/program/JREProperties.class
        mv_file_between_flists java_common_list.txt common_list.txt "$INSTALLDIR/program/classes.*"
        mv_file_between_flists java_common_list.txt common_list.txt $INSTALLDIR/program/libofficebean.so
        mv_file_between_flists java_common_list.txt common_list.txt "$INSTALLDIR/share/Scripts/java.*"
        mv_file_between_flists java_common_list.txt writer_list.txt $INSTALLDIR/program/classes/writer2latex.jar

        # Move arch-dependent/dup files from common to core
        for f in \
            ".*\.so" \
            ".*\.so\..*" \
            "program/.*\.rdb" \
            program/configimport.bin \
            program/javaldx \
            program/msfontextract \
            program/oosplash.bin \
            program/pagein \
            program/pagein-calc \
            program/pagein-common \
            program/pagein-draw \
            program/pagein-impress \
            program/pagein-writer \
            program/pkgchk.bin \
            program/pluginapp.bin \
            program/setofficelang.bin \
            program/soffice.bin \
            program/uno.bin \
            program/unopkg.bin \
            program/uri-encode
        do
            mv_file_between_flists core_list.txt common_list.txt "$INSTALLDIR/$f"
        done

        # Ship ooqstart for gnome in gnome package
        mv_file_between_flists gnome_list.txt core_list.txt "$INSTALLDIR/program/libqstart_gtk680.*"

        # themes are included in other packages
        # don't use remove_file as we don't want them removed from the buildroot.
        mv_file_between_flists /dev/null common_list.txt $INSTALLDIR/share/config/images_crystal.zip
        mv_file_between_flists /dev/null common_list.txt $INSTALLDIR/share/config/images_hicontrast.zip
        mv_file_between_flists /dev/null common_list.txt $INSTALLDIR/share/config/images_tango.zip
        mv_file_between_flists /dev/null common_list.txt $INSTALLDIR/share/config/images.zip
    fi

    # remove known duplicities to do not have files packaged in two packages
    # the Bulgarian fixes can be removed after the issue #54110 is fixed
    remove_duplicity_from_flists common_list.txt lang_bg_list.txt $INSTALLDIR/presets/config/arrowhd.soe
    remove_duplicity_from_flists common_list.txt lang_bg_list.txt $INSTALLDIR/presets/config/classic.sog
    remove_duplicity_from_flists common_list.txt lang_bg_list.txt $INSTALLDIR/presets/config/hatching.soh
    remove_duplicity_from_flists common_list.txt lang_bg_list.txt $INSTALLDIR/presets/config/modern.sog
    remove_duplicity_from_flists common_list.txt lang_bg_list.txt $INSTALLDIR/presets/config/palette.soc
    remove_duplicity_from_flists common_list.txt lang_bg_list.txt $INSTALLDIR/presets/config/styles.sod
    # the British fixes can be removed after the issue #54113 is fixed
    remove_duplicity_from_flists common_list.txt lang_en-GB_list.txt $INSTALLDIR/presets/config/standard.sog
fi

# mark the config files
RPM_CONFIG_FILE_TAGS=
if test "$OOO_VENDOR" = "SUSE" -o "$OOO_VENDOR" = "RedHat"; then
    RPM_CONFIG_FILE_TAGS="%config"
elif test "$OOO_VENDOR" = "PLD" ; then
    RPM_CONFIG_FILE_TAGS="%config(noreplace) %verify(not md5 size mtime)"
fi

if test "z$RPM_CONFIG_FILE_TAGS" != "z" ; then
    cd $FILELISTSDIR
    perl -pi -e "s|^($INSTALLDIR/help/.*\.xsl)\$|$RPM_CONFIG_FILE_TAGS \\1|;" \
	    -e "s|^($INSTALLDIR/help/.*\.css)\$|$RPM_CONFIG_FILE_TAGS \\1|;" \
	    -e "s|^($INSTALLDIR/program/[a-zA-Z0-9_\.]*rc)\$|$RPM_CONFIG_FILE_TAGS \\1|;" \
	    -e "s|^($INSTALLDIR/program/.*\.xsl)\$|$RPM_CONFIG_FILE_TAGS \\1|;" \
	    -e "s|^($INSTALLDIR/share/config/[a-zA-Z0-9]*rc)\$|$RPM_CONFIG_FILE_TAGS \\1|;" \
	    -e "s|^($INSTALLDIR/share/dict/ooo/.*\.lst)\$|$RPM_CONFIG_FILE_TAGS \\1|;" \
	    -e "s|^($INSTALLDIR/share/psprint/.*\.conf)\$|$RPM_CONFIG_FILE_TAGS \\1|;" \
	    -e "s|^($INSTALLDIR/share/registry/.*\.xcu)\$|$RPM_CONFIG_FILE_TAGS \\1|;" \
	    -e "s|^($INSTALLDIR/share/registry/.*\.properties)\$|$RPM_CONFIG_FILE_TAGS \\1|;" \
	    -e "s|^($INSTALLDIR/share/registry/.*\.xcs)\$|$RPM_CONFIG_FILE_TAGS \\1|;" \
	    -e "s|^($INSTALLDIR/user/config/.*\.so.)\$|$RPM_CONFIG_FILE_TAGS \\1|;" \
	*_list.txt
fi

mkdir -p $FILELISTSDIR/orig
mv -f $DESTDIR/gid_Module_* $FILELISTSDIR/orig