-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap
executable file
·70 lines (55 loc) · 1.94 KB
/
bootstrap
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/bash
set -e
source ./functions.sh
source_version_info
debian_changelog
cleanup_old_builds
debian_cleanup
debian_foo_basics
basic_control lightdm
debian_rules
# debian
sed -e "s/\@CODENAME_SAFE\@/${CODENAME_SAFE}/g" \
-e "s/\@FLAVOUR\@/${FLAVOUR}/g" \
./debtemplate/copyright \
> ./debian/copyright
sed -e "s/\@CODENAME_SAFE\@/${CODENAME_SAFE}/g" \
-e "s/\@DISPLAY\@/${DISPLAY}/g" \
./debtemplate/get-template \
> ./debian/get-template
chmod 755 ./debian/get-template
## GTK
sed -e "s/\@CODENAME_SAFE\@/${CODENAME_SAFE}/g" \
-e "s/\@DISPLAY\@/${DISPLAY}/g" \
./debtemplate/gtk-settings.install \
> ./debian/${CODENAME_SAFE}-lightdm-gtk-settings.install
sed -e "s/\@CODENAME_SAFE\@/${CODENAME_SAFE}/g" \
-e "s/\@DISPLAY\@/${DISPLAY}/g" \
./debtemplate/gtk-settings.postinst \
> ./debian/${CODENAME_SAFE}-lightdm-gtk-settings.postinst
sed -e "s/\@CODENAME_SAFE\@/${CODENAME_SAFE}/g" \
-e "s/\@DISPLAY\@/${DISPLAY}/g" \
./debtemplate/gtk-settings.prerm \
> ./debian/${CODENAME_SAFE}-lightdm-gtk-settings.prerm
sed -e "s/\@CODENAME_SAFE\@/${CODENAME_SAFE}/g" \
-e "s/\@DISPLAY\@/${DISPLAY}/g" \
./template/gtk-greeter.conf \
> ./lightdm-gtk-greeter.conf
## KDE
sed -e "s/\@CODENAME_SAFE\@/${CODENAME_SAFE}/g" \
-e "s/\@DISPLAY\@/${DISPLAY}/g" \
./debtemplate/kde-settings.install \
> ./debian/${CODENAME_SAFE}-lightdm-kde-settings.install
sed -e "s/\@CODENAME_SAFE\@/${CODENAME_SAFE}/g" \
-e "s/\@DISPLAY\@/${DISPLAY}/g" \
./debtemplate/kde-settings.postinst \
> ./debian/${CODENAME_SAFE}-lightdm-kde-settings.postinst
sed -e "s/\@CODENAME_SAFE\@/${CODENAME_SAFE}/g" \
-e "s/\@DISPLAY\@/${DISPLAY}/g" \
./debtemplate/kde-settings.prerm \
> ./debian/${CODENAME_SAFE}-lightdm-kde-settings.prerm
sed -e "s/\@CODENAME_SAFE\@/${CODENAME_SAFE}/g" \
-e "s/\@DISPLAY\@/${DISPLAY}/g" \
./template/lightdm-kde-greeter.conf \
> lightdm-kde-greeter.conf
exit 0