Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
X11:Pantheon:Testing
pantheon-mutter
099-source-rename.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 099-source-rename.sh of Package pantheon-mutter
#!/bin/sh # ## Rename source and switch to new gsettings schemas ## Pantheon Mutter can concurrently coexists with Mutter # set -e # Get a separate Gsettings schemas ## Create patch to pantheon-mutter-package find -name \*.doap -exec rm {} + sed -e '/\.pc/!s/libmutter-/libpantheon-mutter-/g' \ -e '/\.pc/!s/libmutter_/libpantheon_mutter_/g' \ -e '/pkglibdir/!s/\$(libdir)\/mutter/\$(libdir)\/pantheon-mutter/g' \ -e '/pkglibdir/!s/\${libdir}\/mutter/${libdir}\/pantheon-mutter/g' \ -e '/girdir/!s/@libdir@\/mutter/@libdir@\/pantheon-mutter/g' \ -e 's/\(girdir\) = \$(.*)/\1 = \$(libdir)\/mutter/g' \ -e 's/\(typelibdir\) = \$(.*)/\1 = \$(libdir)\/pantheon-mutter/g' \ -e 's/\(MUTTER_PLUGIN_DIR\)=".*"/\1=\$libdir\/pantheon-mutter\/plugins/g' \ -e 's/\(GETTEXT_PACKAGE\)=mutter/\1=pantheon-mutter/g' \ -e 's/\$(PACKAGE)/pantheon-mutter/g' \ -e 's/\-lmutter/-lpantheon-mutter/g' \ -i $(grep -Erl 'libmutter\-|libmutter_|libdir|typelibdir|org.gnome|\-lmutter|MUTTER_PLUGIN_DIR|GETTEXT_PACKAGE|PACKAGE' | \ grep -Evi 'AUTHORS|COPYING|HACKING|MAINTAINERS|NEWS|README|ChangeLog') sed -e 's/^libmutter /libpantheon_mutter /' \ -re '/(http|\#|\* |\@)/!s/([^._/[])\bmutter\b([^._/])/\1pantheon-mutter\2/g' \ -re '/(http|\#|\* |\@)/!s/([^._/[])\blibmutter\b([^._/])/\1libpantheon-mutter\2/g' \ -re '/(http|\#|\* |\@|pantheon)/I!s/([^._/[])\bmutter\b(\. | |$)([^._/])?/\1pantheon-mutter\2\3/g' \ -re '/(http|\#|\* |\@|pantheon)/I!s/([^._/[])\blibmutter\b(\. | |$)([^._/])?/\1libpantheon-mutter\2\3/g' \ -re /pantheon/"s/([^'])\blibpantheon-mutter\b([^'])/\1libpantheon_mutter\2/g" \ -re 's/(.fB)mutter(.fP)/\1pantheon-mutter\2/gi' \ -re 's/pantheon-pantheon/pantheon/g' \ -i $(grep -Erl '\bmutter\b|\blibmutter\b' | \ grep -Evi 'AUTHORS|COPYING|HACKING|MAINTAINERS|NEWS|README|ChangeLog') #sed -re '/link_/s/libpantheon-mutter/libpantheon_mutter/' -i src/meson.build #sed -re '/gnome.generate_gir/s/libpantheon-mutter/libpantheon_mutter/' -i src/meson.build #sed -re '/pkg.generate/s/libpantheon-mutter/libpantheon_mutter/' -i src/meson.build ### Change project to pantheon sed -e '/X-GNOME-Bugzilla/d' \ -re '/(http|X-|\/GNOME\/?)/!s/\bGNOME\b/Pantheon/g' \ -re '/(http|X-|\/GNOME\/?)/!s/\bGNOME \+3\b/Pantheon/g' \ -i $(grep -Erl '\bGNOME\b' | grep -Evi 'AUTHORS|COPYING|HACKING|MAINTAINERS|NEWS|README|ChangeLog|meson') ### Switch to a new gsettings schemas ### See the following packages: pantheon-session pantheon-mutter pantheon-desktop-schemas ### Include: org.gnome.desktop org.gnome.mutter org.gnome.settings-daemon org.gnome.system ### Exclude: org.gnome.SessionManager (gsettings name = DBus name) You will need to do this manually sed -e '/org.gnome.desktop/s/org\.gnome/org.opensuse.pantheon.wrap.gnome/g' \ -e '/org.gnome.desktop/s/org\/gnome/org\/opensuse\/pantheon\/wrap\/gnome/g' \ -e '/org.gnome.mutter/s/org\.gnome/org.opensuse.pantheon.wrap.gnome/g' \ -e '/org.gnome.mutter/s/org\/gnome/org\/opensuse\/pantheon\/wrap\/gnome/g' \ -e '/org.gnome.settings-daemon/s/org\.gnome/org.opensuse.pantheon.wrap.gnome/g' \ -e '/org.gnome.settings-daemon/s/org\/gnome/org\/opensuse\/pantheon\/wrap\/gnome/g' \ -e '/org.gnome.system/s/org\.gnome/org.opensuse.pantheon.wrap.gnome/g' \ -e '/org.gnome.system/s/org\/gnome/org\/opensuse\/pantheon\/wrap\/gnome/g' \ -i $(grep -Erl 'org.gnome' | grep -Evi 'AUTHORS|COPYING|HACKING|MAINTAINERS|NEWS|README|ChangeLog') ### Change .desktop file sed -e '/pantheon/I!s/mutter/pantheon-mutter/gi' \ -i $(grep -rl '^Exec=') ### Switch to a new dependencies sed -e 's/\bGnomeDesktop-/PantheonGnomeDesktop-/' \ -e 's/\bGDesktopEnums-/PantheonGDesktopEnums-/' \ -e 's/\bgnome-desktop-/pantheon-desktop-/' \ -e 's/\bgnome-settings-daemon\b/pantheon-settings-daemon/' \ -e 's/\bgsettings-desktop-schemas\b/pantheon-desktop-schemas/' \ -i $(grep -Erl 'gnome-desktop|gnome-settings-daemon|gsettings-desktop-schemas|GnomeDesktop|GDesktopEnums' | \ grep -Evi 'AUTHORS|COPYING|HACKING|MAINTAINERS|NEWS|README|ChangeLog') ### Switch to new binary files sed -re '/(http)/!s/([^._/])\bgnome-session\b([^._/])/\1pantheon-session\2/g' \ -i $(grep -Erl 'gnome-session' | \ grep -Evi 'AUTHORS|COPYING|HACKING|MAINTAINERS|NEWS|README|ChangeLog') ### Create a new symlinks for _file in $(find * -regex ".*\(org.gnome.*\.gschema\|\.convert\|mutter.*.xml\|\.desktop.in\|\.[0-9]$\).*"); do _inputfile=${_file/org.gnome/org.opensuse.pantheon.wrap.gnome} _inputfile=${_inputfile/50-mutter/50-pantheon-mutter} _inputfile=${_inputfile/\/mutter//pantheon-mutter} _outputfile=${_inputfile//.in/} _newfile=${_file//.in/} sed -e /org.gnome.[A-Z]/\!"s/\([^-]\)${_file##*/}/\1${_inputfile##*/}/g" \ -e /pantheon/\!"s/${_newfile##*/}/${_outputfile##*/}/g" \ -i $(grep -rl ${_file##*/} | grep -Evi 'AUTHORS|COPYING|HACKING|MAINTAINERS|NEWS|README|ChangeLog') &>/dev/null || : ln -s ${_file##*/} $_inputfile || : unset _inputfile unset _outputfile unset _newfile done ### Create patch to package-devel sed -e '/pantheon/I!s/\$(includedir)\/mutter/\$(includedir)\/pantheon-mutter/g' \ -e '/pantheon/I!s/\${includedir}\/mutter/${includedir}\/pantheon-mutter/g' \ -e '/pantheon/I!s/@includedir@\/mutter/@includedir@\/pantheon-mutter/g' \ -e '/pantheon/I!s/@libdir@\/mutter/@libdir@\/pantheon-mutter/g' \ -e '/pantheon/I!s/\(girdir\) \?= \?.*/\1 = \$(libdir)\/pantheon-mutter/g' \ -i $(grep -rl 'includedir\|girdir\|libdir' | grep -Evi 'AUTHORS|COPYING|HACKING|MAINTAINERS|NEWS|README|ChangeLog') for _file in $(find . -name \*.pc.in) ./mutter-clutter-x11.pc.in; do _newfile=${_file/\/libmutter//libpantheon-mutter} _newfile=${_newfile/\/mutter//pantheon-mutter} _fileapi=${_file/.pc.in/-\$\\(\.\\?\\)LIBMUTTER_API_VERSION\\(\.\\?\\).pc} _newfileapi=${_newfile/.pc.in/-\$\\1LIBMUTTER_API_VERSION\\2.pc} _filerequires=${_fileapi/\$\\(\.\\?\\)LIBMUTTER_API_VERSION\\(\.\\?\\)/@LIBMUTTER_API_VERSION@} _newfilerequires=${_newfileapi/\$\\1LIBMUTTER_API_VERSION\\2/@LIBMUTTER_API_VERSION@} _pkgrequires=${_filerequires/@LIBMUTTER_API_VERSION@.pc/@LIBMUTTER_API_VERSION@} _newpkgrequires=${_newfilerequires/@LIBMUTTER_API_VERSION@.pc/@LIBMUTTER_API_VERSION@} sed -e "s/${_file##*/}/${_newfile##*/}/g" \ -e "s/${_fileapi##*/}/${_newfileapi##*/}/g" \ -e "s/${_filerequires##*/}/${_newfilerequires##*/}/g" \ -e "/^Requires\|PACKAGES/Is/${_pkgrequires##*/}/${_newpkgrequires##*/}/g" \ -i $(grep -rl "${_file##*/}\|${_fileapi##*/}\|${_filerequires##*/}\|${_pkgrequires##*/}" | \ grep -Evi 'AUTHORS|COPYING|HACKING|MAINTAINERS|NEWS|README|ChangeLog') &>/dev/null || : [ -z "${_file/*mutter-clutter-x11.pc.*/}" ] || mv $_file $_newfile done ### ## # # Show gschemas # grep org.gnome $(find -name \*.gschema*) ## Show other D-BUS Objects and gschemas # grep -r org.gnome | grep -Ev 'org.gnome.mutter|po\/' | grep org.gnome ## # # Check code after changes # grep -r mutter | grep -Ev 'pantheon|\.h|\.c' | grep mutter # grep -r org.gnome | grep -Ev 'pantheon|org.gnome.[A-Z]' | grep org.gnome #
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor