2 ##############################################################################
3 # Name: distrib/scripts/update-manifests.sh
4 # Purpose: Run from this directory to update some of the manifests/*.rsp
5 # files that can be generated automatically (vc, dmc, makefile,
8 # Note that it's best to run this after running bakefile_gen,
9 # otherwise this script can be quite slow.
12 # Copyright: (c) 2006 Vaclav Slavik <vaclav@wxwindows.org>
13 # Licence: wxWindows licence
14 ##############################################################################
16 MANIFESTS_DIR
=$(pwd)/manifests
17 WX_ROOT
=$(cd ../.. ; pwd)
21 # generates manifest from bakefile output files:
24 manifest_file
="${MANIFESTS_DIR}/$1"
29 # generate files from given format:
31 cd ${WX_ROOT}/build
/bakefiles
32 bakefile_gen
-d ..
/..
/distrib
/scripts
/Bakefiles.release.bkgen \
33 --format $formats --list-files | \
34 sed -e "s@^${WX_ROOT}/@@" | sort | uniq \
38 # and add manually added files to the list:
40 echo $f >>$manifest_file
44 # generates manifest from all files present in CVS under given directories:
45 do_list_all_cvs_files
()
47 local manifest manifest_file files subdirs d f ff s ss
50 manifest_file
="${MANIFESTS_DIR}/${manifest}"
55 files
=$(cat $d/CVS/Entries | sed -ne 's@^/\([^/]*\)/.
*@\
1@p
')
59 echo "$ff" >>$manifest_file
63 # recurse into subdirs:
64 subdirs=$(cat $d/CVS/Entries | sed -ne 's@^D/\([^/]*\)/.*@\1@p')
65 for s
in $subdirs ; do
68 do_list_all_cvs_files
"$manifest" "$ss"
76 rm -f "${MANIFESTS_DIR}/$1"
77 do_list_all_cvs_files $
*
81 list_all_cvs_files generic_samples.rsp \
85 generate_manifest dmc.rsp \
88 generate_manifest vc.rsp \
90 "include/msvc/wx/setup.h" \
91 `(cd $WX_ROOT/src ; ls */*.ds?)`
93 generate_manifest makefile.rsp \
96 "samples/Makefile.in" \
99 `find . -name descrip.mms`
101 generate_manifest wince.rsp \
103 "build/wince/missing"