diff options
author | Britney Fransen <brfransen@gmail.com> | 2022-11-18 20:11:10 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2022-11-18 20:11:10 (GMT) |
commit | aa49a137c882caf85fe2036641d1eaa87b900b7a (patch) | |
tree | a506a2be9564107a8b580fa5d1d072797c67fd30 /linhes/linhes-dev/lh_setup_dev.sh | |
parent | bad99ceb7fe0551a50d34a6d88fdb95894e42c79 (diff) | |
download | linhes_pkgbuild-aa49a137c882caf85fe2036641d1eaa87b900b7a.zip linhes_pkgbuild-aa49a137c882caf85fe2036641d1eaa87b900b7a.tar.gz linhes_pkgbuild-aa49a137c882caf85fe2036641d1eaa87b900b7a.tar.bz2 |
linhes-dev: mp.py: rework --rmold
rename scripts to lh_
Diffstat (limited to 'linhes/linhes-dev/lh_setup_dev.sh')
-rwxr-xr-x | linhes/linhes-dev/lh_setup_dev.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/linhes/linhes-dev/lh_setup_dev.sh b/linhes/linhes-dev/lh_setup_dev.sh new file mode 100755 index 0000000..df034c5 --- /dev/null +++ b/linhes/linhes-dev/lh_setup_dev.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +echo "Creating repo directories..." +sudo mkdir -p /data/dev/ +sudo chmod a+w /data/dev/ +mkdir -p /data/dev/LH_buildroot +mkdir -p /data/dev/pkg_repo/x86_64/linhes +mkdir -p /data/dev/pkg_repo/x86_64/linhes-testing +mkdir -p /data/dev/pkg_repo/packages +mkdir -p /data/dev/pkg_repo/sources +mkdir -p /data/dev/pkg_repo/src_packages/linhes +mkdir -p /data/dev/pkg_repo/src_packages/linhes-testing + + +echo -e "\n\nSetup clean-chroot-manager (ccm) and edit ~/.config/clean-chroot-manager.conf"... +sudo ccm l +sed -i 's/CHROOTPATH64=.*/CHROOTPATH64=\"\/data\/dev\/LH_buildroot\"/' ~/.config/clean-chroot-manager.conf +sudo ccm c + +echo -e "\n\nChanging setting in /etc/makepkg.conf..." +#sudo sed -i 's/#PKGDEST=.*/PKGDEST=\/data\/dev\/pkg_repo\/packages/' /etc/makepkg.conf +sudo sed -i 's/#SRCDEST=.*/SRCDEST=\/data\/dev\/pkg_repo\/sources/' /etc/makepkg.conf +sudo sed -i 's/#SRCPKGDEST=.*/SRCPKGDEST=\/data\/dev\/pkg_repo\/src_packages/' /etc/makepkg.conf +sudo sed -i 's/#PACKAGER=.*/PACKAGER=\"LinHESDEV <LinHESDev\@linhes.org>\"/' /etc/makepkg.conf + + +# clone the git linhes_pkgbuild +# Checkout the repo. You will need to have been given a dev account on +# linhes.org. This involves creating a public ssh key and supplying it to +# one of the linhes.org admins. The key is created using ssh-keygen. The +# resulting public key will be stored in .ssh/id_rsa.pub. +echo -e "\n\nCheckout the repo manually. You will need to be given a dev account on linhes.org. This involves creating a public ssh key and supplying it toone of the linhes.org admins. The key is created using ssh-keygen. The resulting public key will be stored in .ssh/id_rsa.pub." +echo -e "EXAMPLE: \ncd /data/dev\ngit clone git@linhes.org:linhes_pkgbuild\n\n" |