project: Move build files to build-aux
An attempt to make the root folder slightly less cluttered and more organized. No functional changes whatsoever.
This commit is contained in:
parent
9460babd1e
commit
e2a18bec49
6 changed files with 6 additions and 9 deletions
5
build-aux/meson.build
Normal file
5
build-aux/meson.build
Normal file
|
@ -0,0 +1,5 @@
|
|||
update_from_gsd = find_program('meson/update-from-gsd.sh')
|
||||
update_from_gsd_in = files('meson/update-from-gsd.in')
|
||||
update_from_nma_in = files('meson/update-from-nma.in')
|
||||
|
||||
meson.add_install_script('meson/meson_post_install.py', control_center_datadir)
|
15
build-aux/meson/meson_post_install.py
Normal file
15
build-aux/meson/meson_post_install.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
gsettingsschemadir = os.path.join(sys.argv[1], 'glib-2.0', 'schemas')
|
||||
icondir = os.path.join(sys.argv[1], 'icons', 'hicolor')
|
||||
|
||||
if not os.environ.get('DESTDIR'):
|
||||
print('Compiling gsettings schemas...')
|
||||
subprocess.call(['glib-compile-schemas', gsettingsschemadir])
|
||||
|
||||
print('Update icon cache...')
|
||||
subprocess.call(['gtk-update-icon-cache', '-f', '-t', icondir])
|
10
build-aux/meson/update-from-gsd.in
Executable file
10
build-aux/meson/update-from-gsd.in
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd @working_dir@
|
||||
|
||||
export FILES="@source_files@"
|
||||
export DIR="@input_dir@"
|
||||
|
||||
@program@ &&
|
||||
git add @source_files@ &&
|
||||
git commit -m "@source_message@"
|
26
build-aux/meson/update-from-gsd.sh
Executable file
26
build-aux/meson/update-from-gsd.sh
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
|
||||
function die() {
|
||||
echo $*
|
||||
exit 1
|
||||
}
|
||||
|
||||
if test -z "$DIR"; then
|
||||
echo "Must set DIR"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -z "$FILES"; then
|
||||
echo "Must set FILES"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for FILE in $FILES; do
|
||||
if cmp -s $DIR/$FILE $FILE; then
|
||||
echo "File $FILE is unchanged"
|
||||
else
|
||||
cp $DIR/$FILE $FILE || die "Could not move $DIR/$FILE to $FILE"
|
||||
echo "Updated $FILE"
|
||||
git add $FILE
|
||||
fi
|
||||
done
|
19
build-aux/meson/update-from-nma.in
Executable file
19
build-aux/meson/update-from-nma.in
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd @working_dir@
|
||||
|
||||
export FILES="@source_files@"
|
||||
export DIR="@input_dir@"
|
||||
|
||||
@program@ &&
|
||||
patch -p4 < @source_patch@ &&
|
||||
git add @source_files@ &&
|
||||
git commit -m "@source_message@"
|
||||
|
||||
export FILES="@resource_data@"
|
||||
export DIR="@input_dir@"
|
||||
|
||||
@program@ &&
|
||||
patch -p4 < @resource_patch@ &&
|
||||
git add @resource_data@ &&
|
||||
git commit -m "@resource_message@"
|
Loading…
Add table
Add a link
Reference in a new issue