Hello all,
I wrote this simple script to automate my cloning, making and building
process for working with dpkg. Nothing new about it. All in it I got it
from existing documentation, README files and such.
it's very "personnal" :)
expected to be run as root (real-root; did not try any other approach)
enjoy
Joao
=====================================
#!/bin/bash
echo "________________________________________Part I --- apt"
sleep 3
echo "________________________________________apt update"
apt update
#pt upgrade -y
echo "________________________________________apt install stuff"
apt install -y git ca-certificates libmodule-build-perl fakeroot gpg
cppcheck shellcheck aspell aspell-en codespell i18nspector
libtest-strict-perl libtest-minimumversion-perl libtest-perl-critic-perl libtest-pod-perl libtest-pod-coverage-perl libtest-spelling-perl libtest-synopsis-perl
echo "________________________________________Part II --- clone sources"
sleep 3
echo "________________________________________git clone a"
git clone
https://git.dpkg.org/git/dpkg/dpkg.git
echo "________________________________________git clone b"
git clone
https://git.dpkg.org/git/dpkg/dpkg-tests.git
echo "________________________________________Part III --- add remotes"
cd dpkg
pwd
sleep 10
echo "________________________________________remote add hadrons a"
git remote add guillem
https://git.hadrons.org/git/debian/dpkg/dpkg.git
git fetch guillem
cd ..
echo "________________________________________remote add hadrons b"
cd dpkg-tests
pwd
git remote add guillem
https://git.hadrons.org/git/debian/dpkg/dpkg-tests.git
git fetch guillem
echo "________________________________________remote adding done"
cd ..
pwd
cd dpkg
pwd
echo "________________________________________Part IV --- build and check
dpkg"
sleep 10
echo "________________________________________apt build-dep"
apt build-dep -y .
echo "________________________________________autogen"
./autogen
echo "________________________________________configure"
./configure
echo "________________________________________make distcheck"
make distcheck
echo "________________________________________make check"
sleep 10
make check TESTSUITEFLAGS=--verbose TEST_PARALLEL=$(nproc) AUTHOR_TESTING=1 echo "________________________________________Part II end"
cd ..
pwd
cd dpkg-tests
pwd
sleep 10
echo "________________________________________Part V --- dpkg-tests"
echo "________________________________________db-regen"
./db-regen
echo "________________________________________make test"
echo "DPKG_BUILDTREE = $(realpath ../dpkg)" > .pkg-tests.conf
echo "DPKG_SERIES = 1.20.x" >>.pkg-tests.conf
make test
echo "________________________________________The End"
echo "________________________________________The End"
<div dir="ltr"><div>Hello all,</div><div><br></div><div>I wrote this simple script to automate my cloning, making and building process for working with dpkg. Nothing new about it. All in it I got it from existing documentation, README files and such.<br><
/div><div><br></div><div>it's very "personnal" :)</div><div><br></div><div><div>expected to be run as root (real-root; did not try any other approach)</div><div><br></div>enjoy</div><div>Joao<br></div><div>===================================
==</div><div>#!/bin/bash<br>echo "________________________________________Part I --- apt"<br>sleep 3<br>echo "________________________________________apt update"<br>apt update<br>#pt upgrade -y<br>echo "___________________________
_____________apt install stuff"<br>apt install -y git ca-certificates libmodule-build-perl fakeroot gpg cppcheck shellcheck aspell aspell-en codespell i18nspector libtest-strict-perl libtest-minimumversion-perl libtest-perl-critic-perl libtest-pod-
perl libtest-pod-coverage-perl libtest-spelling-perl libtest-synopsis-perl<br><br>echo "________________________________________Part II --- clone sources"<br>sleep 3<br>echo "________________________________________git clone a"<br>git
clone <a href="
https://git.dpkg.org/git/dpkg/dpkg.git">https://git.dpkg.org/git/dpkg/dpkg.git</a><br>echo "________________________________________git clone b"<br>git clone <a href="
https://git.dpkg.org/git/dpkg/dpkg-tests.git">https://git.dpkg.
org/git/dpkg/dpkg-tests.git</a><br><br><br>echo "________________________________________Part III --- add remotes"<br>cd dpkg<br>pwd<br>sleep 10<br>echo "________________________________________remote add hadrons a"<br>git remote add
guillem <a href="
https://git.hadrons.org/git/debian/dpkg/dpkg.git">https://git.hadrons.org/git/debian/dpkg/dpkg.git</a><br>git fetch guillem<br>cd ..<br>echo "________________________________________remote add hadrons b"<br>cd dpkg-tests<br>pwd<
git remote add guillem <a href="https://git.hadrons.org/git/debian/dpkg/dpkg-tests.git">https://git.hadrons.org/git/debian/dpkg/dpkg-tests.git</a><br>git fetch guillem<br>echo "________________________________________remote adding done"<br>
cd ..<br>pwd<br><br>cd dpkg<br>pwd<br>echo "________________________________________Part IV --- build and check dpkg"<br>sleep 10<br>echo "________________________________________apt build-dep"<br>apt build-dep -y .<br>echo "_____
___________________________________autogen"<br>./autogen<br>echo "________________________________________configure"<br>./configure<br>echo "________________________________________make distcheck"<br>make distcheck<br>echo "_
_______________________________________make check"<br>sleep 10<br>make check TESTSUITEFLAGS=--verbose TEST_PARALLEL=$(nproc) AUTHOR_TESTING=1<br>echo "________________________________________Part II end"<br><br>cd ..<br>pwd<br>cd dpkg-
tests<br>pwd<br>sleep 10<br>echo "________________________________________Part V --- dpkg-tests"<br>echo "________________________________________db-regen"<br>./db-regen<br>echo "________________________________________make test&
quot;<br>echo "DPKG_BUILDTREE = $(realpath ../dpkg)" > .pkg-tests.conf<br>echo "DPKG_SERIES = 1.20.x" >>.pkg-tests.conf<br>make test<br>echo "________________________________________The End"<br>echo "___________
_____________________________The End"</div><div><br></div></div>
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)