Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- MERGE="Update crashdb.conf file for follow apport spec regarding to bug-pattern option:
- http://bazaar.launchpad.net/~apport-hackers/apport/trunk/view/head:/doc/crashdb-conf.txt
- Maintain value as None. But it could be improved in a future like this live example:
- http://people.canonical.com/~ubuntu-archive/bugpatterns/bugpatterns.xml"
- COMMIT_MESSAGE_SED="Update dictionary option for follow apport spec with
- apport.report.Report.search_bug_patterns().
- See http://bazaar.launchpad.net/~apport-hackers/apport/trunk/view/head:/doc/crashdb-conf.txt
- bug_pattern_base option is deprecated some years ago and replaced by bug_pattern_url.
- The old configuration is harmless because use a None value, but it is better
- update with the new config key for avoid future problems."
- MESSAGE_CHANGELOG="debian/unity-crashdb.conf:
- - Update dictionary option for follow latest apport spec"
- COMMIT_MESSAGE_CHANGELOG="Update changelog reflecting the lastest change"
- for project in `cat bzr-repos.txt`;
- do
- PROJECT_FIXED=$(echo ${project} | tr -d '\/' )
- rm -rf $PROJECT_FIXED
- bzr branch lp:${project} ${PROJECT_FIXED}-package --use-existing-dir
- cd ${PROJECT_FIXED}-package
- for crashdb_file in `ls debian/*-crashdb.conf`;
- do
- echo 'Performing sed action'
- sed -i 's/bug_pattern_base/bug_pattern_url/g' ${crashdb_file} || exit 1
- done
- echo 'Doing sed commit'
- bzr ci -m "${COMMIT_MESSAGE_SED}"
- echo 'Performing sed action in changelog'
- bzr ci -m "${COMMIT_MESSAGE_CHANGELOG}" debian/changelog
- cd ..
- done
Advertisement
Add Comment
Please, Sign In to add comment