Skip to content

Commit 409a6b3

Browse files
committed
Merge branch 'dev' into pacman-debug
2 parents cd760f8 + 8194eaf commit 409a6b3

File tree

1,052 files changed

+3731
-30000
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,052 files changed

+3731
-30000
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ temp/
2323
system/cpp-src/mkalteriso/CMakeLists.txt.user
2424
menuconfig-script/kernel_choice_*
2525
/custom.conf
26+
/out/
27+
out
28+
/pacman-*.conf

.travis.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ addons:
1010
script:
1111
- bash -c 'shopt -s globstar nullglob; shellcheck -s bash --exclude=SC2068 -S error **/*.{sh,ksh,bash}'
1212
- bash -c 'shopt -s globstar nullglob; shellcheck -s bash --exclude=SC2068 -S error tools/*.{sh,ksh,bash}'
13-
- cd system/cpp-src/mkalteriso
14-
- mkdir -p build
15-
- cd build
16-
- cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ ..
17-
- make
18-
1913
git:
2014
submodules: false
2115
language: bash

Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
FROM archlinux:latest
2-
RUN echo 'Server = http://mirrors.cat.net/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist \
3-
&& echo 'nameserver 1.1.1.1' > /etc/resolv.conf
4-
RUN echo
5-
RUN pacman -Syyu --noconfirm
6-
RUN pacman -S archiso git arch-install-scripts sudo qt5-base cmake ninja base-devel --noconfirm
7-
RUN pacman-key --init
2+
RUN echo 'Server = https://mirrors.kernel.org/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist
3+
RUN pacman -Sy --noconfirm reflector
4+
RUN reflector --protocol https -c Japan --sort rate --save /etc/pacman.d/mirrorlist
5+
RUN pacman -Syyu --noconfirm \
6+
git sudo python3 \
7+
base-devel cmake ninja qt5-base \
8+
archiso arch-install-scripts pyalpm
89
COPY . /alterlinux
910
WORKDIR /alterlinux
11+
RUN pacman-key --init
1012
RUN ./tools/keyring.sh -a
1113
ENTRYPOINT ["./build.sh"]
1214
CMD []

Makefile

Lines changed: 12 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11

22
BUILD_SCRIPT := build.sh
33
KERNEL := zen
4-
SHARE_OPTION := --boot-splash --comp-type "xz" --user "alter" --password "alter" --kernel "${KERNEL}" --debug
4+
SHARE_OPTION := --boot-splash --comp-type "xz" --user "alter" --password "alter" --kernel "${KERNEL}" --debug --noconfirm
55
ARCH_x86_64 := --arch x86_64
66
ARCH_i686 := --arch i686
77
CURRENT_DIR := ${shell dirname $(dir $(abspath $(lastword $(MAKEFILE_LIST))))}/${shell basename $(dir $(abspath $(lastword $(MAKEFILE_LIST))))}
88

9-
full:mkalteriso
10-
@sudo ${CURRENT_DIR}/tools/fullbuild.sh
9+
full:
10+
@sudo ${CURRENT_DIR}/tools/fullbuild.sh -d
1111
@make clean
1212

13-
xfce-64 xfce-32 lxde-64 lxde-32 plasma-64 releng-32 releng-64 cinnamon-64 cinnamon-32 deepin-64 gnome-64 gnomemac-64 i3-64 i3-32:mkalteriso
13+
basic-64 basic-32 cinnamon-64 cinnamon-32 gnome-64 i3-64 i3-32 lxde-64 lxde-32 plasma-64 releng-32 releng-64 serene-64 serene-32 xfce-64 xfce-32 xfce-pro-64:
1414
$(eval CHANNEL=${shell echo ${@} | cut -d '-' -f 1})
1515
$(eval ARCHITECTURE=${shell echo ${@} | cut -d '-' -f 2})
1616
@case ${ARCHITECTURE} in\
@@ -20,49 +20,28 @@ xfce-64 xfce-32 lxde-64 lxde-32 plasma-64 releng-32 releng-64 cinnamon-64 cinnam
2020
@make clean
2121

2222
menuconfig/build/mconf::
23-
@if [ -d menuconfig/build ];\
24-
then \
25-
:;\
26-
else \
27-
mkdir menuconfig/build ;\
28-
fi
23+
@mkdir -p menuconfig/build
2924
(cd menuconfig/build ; cmake -GNinja .. ; ninja -j4 )
3025

31-
mkalteriso:
32-
@if [ -d system/cpp-src/mkalteriso/build ];\
33-
then \
34-
:;\
35-
else \
36-
mkdir system/cpp-src/mkalteriso/build ;\
37-
fi
38-
(cd system/cpp-src/mkalteriso/build ; cmake -GNinja .. ; ninja -j4 ; cp -f mkalteriso ../../../)
39-
4026
menuconfig:menuconfig/build/mconf menuconfig-script/kernel_choice
41-
menuconfig/build/mconf menuconfig-script/rootconf
27+
@menuconfig/build/mconf menuconfig-script/rootconf
4228

4329
menuconfig-script/kernel_choice:system/kernel-x86_64 system/kernel-i686
44-
${CURRENT_DIR}/tools/kernel-choice-conf-gen.sh
30+
@${CURRENT_DIR}/tools/kernel-choice-conf-gen.sh
4531

4632
build_option:
47-
if [ -f .config ];\
48-
then \
49-
:;\
50-
else \
51-
make menuconfig ;\
52-
fi
33+
@if [ ! -f .config ]; then make menuconfig ; fi
5334
${CURRENT_DIR}/tools/menuconf-to-alterconf.sh ${CURRENT_DIR}/.build_option
5435

5536
clean:
5637
@sudo ${CURRENT_DIR}/${BUILD_SCRIPT} clean
5738

58-
build:build_option mkalteriso
39+
build:build_option
5940
$(eval BUILD_OPTION := $(shell cat ${CURRENT_DIR}/.build_option))
60-
sudo ${CURRENT_DIR}/${BUILD_SCRIPT} ${BUILD_OPTION}
41+
@sudo ${CURRENT_DIR}/${BUILD_SCRIPT} ${BUILD_OPTION}
6142

6243
keyring::
63-
sudo ${CURRENT_DIR}/tools/keyring.sh --alter-add --arch-add
44+
@sudo ${CURRENT_DIR}/tools/keyring.sh --alter-add --arch-add
6445

6546
wizard:
66-
sudo ${CURRENT_DIR}/tools/wizard.sh
67-
68-
47+
@sudo ${CURRENT_DIR}/tools/wizard.sh

0 commit comments

Comments
 (0)