diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2014-07-01 10:06:53 -0700 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2014-07-01 10:06:53 -0700 |
commit | f692ef5fb2f7d6e938b54872ae0b3e4979a03c13 (patch) | |
tree | e34b570596016b8f268e05888e26715ced74dbf2 | |
parent | 14a18b7611f2f65152b0e3e51dd4c17dc72f4a0e (diff) |
It's useful to be able to use release.sh to release custom packages that live on
people.freedesktop.org. I use this for libvdpau since there's no official
project repository for it yet.
Add code to check `git config --get xorg.section` to determine the section. If
it's "custom", use xorg.user and xorg.project to determine where to put the
resulting packages.
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
-rwxr-xr-x | release.sh | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -203,6 +203,21 @@ get_section() { local module_url local full_module_url + section=`git config --get xorg.section` + if [ x"$section" = xcustom ]; then + xorg_user=`git config --get xorg.user` + xorg_project=`git config --get xorg.project` + if [ -z $xorg_user ]; then + echo "Configure your xorg username with 'git config xorg.user <username>'" + return 1 + fi + if [ -z $xorg_project ]; then + echo "Configure your xorg project name with 'git config xorg.project <project_name>'" + return 1 + fi + return 0 + fi + # Obtain the git url in order to find the section to which this module belongs full_module_url=`git config --get remote.$remote_name.url | sed 's:\.git$::'` if [ $? -ne 0 ]; then @@ -497,6 +512,7 @@ process_module() { host_xorg="xorg.freedesktop.org" host_dri="dri.freedesktop.org" host_wayland="wayland.freedesktop.org" + host_people="people.freedesktop.org" # Mailing lists where to post the all [Announce] e-mails list_to="xorg-announce@lists.freedesktop.org" @@ -527,6 +543,13 @@ process_module() { list_cc=$list_xcb fi + # Custom modules go on people.freedesktop.org. + if [ x"$section" = xcustom ]; then + host_current=$host_people + section_path="~$xorg_user/$xorg_project" + srv_path="/home/$xorg_user/public_html/$xorg_project" + fi + # Module mesa/drm goes in the dri "libdrm" section if [ x"$section" = xdrm ]; then host_current=$host_dri |