File: export-zips.sh

package info (click to toggle)
gnome-shell-extensions 3.30.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,048 kB
  • sloc: xml: 84; sh: 27; makefile: 12
file content (37 lines) | stat: -rwxr-xr-x 924 bytes parent folder | download | duplicates (2)
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
#!/bin/sh

srcdir=`dirname $0`
srcdir=`(cd $srcdir && pwd)`

builddir=`mktemp -p $srcdir -d _build.XXXXXX` || exit 1
installdir=`mktemp -p $srcdir -d _install.XXXXXX` || exit 1

meson setup --prefix=$installdir -Dextension_set=all $srcdir $builddir
ninja -C$builddir install

rm -rf $srcdir/zip-files
mkdir $srcdir/zip-files

extensiondir=$installdir/share/gnome-shell/extensions
schemadir=$installdir/share/glib-2.0/schemas
localedir=$installdir/share/locale

for f in $extensiondir/*; do
  name=`basename ${f%%@*}`
  uuid=$name@gnome-shell-extensions.gcampax.github.com
  schema=$schemadir/org.gnome.shell.extensions.$name.gschema.xml

  cp $srcdir/NEWS $srcdir/COPYING $f
  cp -r $localedir $f

  if [ -f $schema ]; then
    mkdir $f/schemas
    cp $schema $f/schemas;
    glib-compile-schemas $f/schemas
  fi

  (cd $f && zip -rmq $srcdir/zip-files/$uuid.shell-extension.zip .)
done

rm -rf $builddir
rm -rf $installdir