Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash --login
- # Begin aros.sh
- # fkt_dnf_install
- fkt_dnf_install() {
- dnf install \
- \
- autoconf \
- automake \
- bison \
- flex \
- gcc \
- gcc-c++ \
- genisoimage \
- glibc-devel.i386 \
- libpng-devel \
- libtool \
- make \
- netpbm \
- netpbm-progs \
- patch \
- SDL \
- svn
- }
- # fkt_svn_checkout
- fkt_svn_checkout() {
- svn co \
- \
- --username=guest \
- --password=guest \
- \
- https://svn.aros.org/svn/aros/trunk \
- \
- AROS
- }
- # fkt_patch_grub2
- fkt_patch_grub2() {
- wget -c https://pastebin.com/raw/9Ws99C9y \
- -O ~/AROS/AROS/arch/all-pc/boot/aros1.patch
- pushd ~/AROS/AROS/arch/all-pc/boot
- patch -N -p0 < aros1.patch
- popd
- }
- # fkt_patch_glibc
- fkt_patch_glibc() {
- mkdir -p ~/AROS/AROS/bin/pc-i386/gen/lib
- cp /usr/lib/libc_nonshared.a ~/AROS/AROS/bin/pc-i386/gen/lib/libc.a
- }
- # fkt_configure_32bit
- fkt_configure_32bit() {
- cd ~/AROS/AROS
- ./configure --target=pc-i386
- }
- # fkt_configure_64bit
- fkt_configure_64bit() {
- cd ~/AROS/AROS
- ./configure --target=pc-x86_64
- }
- # fkt_make
- fkt_make() {
- cd ~/AROS/AROS
- make
- }
- # fkt_make_distfile
- fkt_make_distfile() {
- cd ~/AROS/AROS
- make distfiles
- }
- case "${1}" in
- -a)
- fkt_dnf_install
- fkt_svn_checkout
- fkt_patch_grub2
- fkt_patch_glibc
- fkt_configure_32bit
- fkt_make
- fkt_make_distfile
- ;;
- -b)
- fkt_dnf_install
- fkt_svn_checkout
- fkt_patch_grub2
- fkt_configure_64bit
- fkt_make
- fkt_make_distfile
- ;;
- -i)
- fkt_dnf_install
- ;;
- -s)
- fkt_svn_checkout
- ;;
- -g)
- fkt_patch_grub2
- ;;
- -c)
- fkt_patch_glibc
- ;;
- -m)
- fkt_make
- ;;
- -d)
- fkt_make_distfile
- ;;
- *)
- echo -e "---[ Menu ]--------------------"
- echo -e "-a) :... do everything (32 bit)"
- echo -e "-b) :... do everything (64 bit)"
- echo -e "---[ Tasks ]-------------------"
- echo -e "-i) :......... dnf install deps"
- echo -e "-s) :........ svn checkout aros"
- echo -e "-g) :.............. patch grub2"
- echo -e "-c) :.............. patch glibc"
- echo -e "-m) :.............. make (aros)"
- echo -e "-d) :..... make distfile (aros)"
- ;;
- esac
- exit
- # End aros.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement