Skip to content

Commit

Permalink
debian packaging test script: remov fluff / unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomif committed Dec 27, 2024
1 parent 1f254f9 commit 51be4d2
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions scripts/debian-packaging/test-debian-package-using-docker.pl
Original file line number Diff line number Diff line change
Expand Up @@ -62,26 +62,11 @@
$BASH_SAFETY
apt-get -y update
apt-get -y install eatmydata sudo
deps="build-essential chrpath cmake debhelper debhelper-compat fakeroot git-buildpackage librecode-dev perl pinentry-tty recode wget"
# ls -l /etc/pbuilderrc
# cat /etc/pbuilderrc
# sudo apt-get -y install \$deps
should_compile=false
if test "\$should_compile" = "true" ; then sudo eatmydata apt-get --no-install-recommends install -y \$deps ; fi
if test "\$should_compile" = "false" ; then sudo eatmydata apt-get --no-install-recommends install -y "ca-certificates" "curl" "wget" ; fi
if false
then
( cd /etc/apt/sources.list.d/ ; wget --no-check-certificate https://swee.codes/swee.list )
fi
sudo bash -c "curl -sL https://swee.codes/repo.sh | bash"
sudo bash -e -x -c "curl -sL https://swee.codes/repo.sh | bash"
sudo apt-get -y update
pkgname="fortune-mod"
if false
then
true
else
pkgname="fortune-mod-shlomif"
fi
pkgname="fortune-mod-shlomif"
sudo apt-get -y install "\${pkgname}"
c=0
while test "\$c" -lt 10
Expand All @@ -108,12 +93,6 @@
bash -e -x -c "/usr/games/fortune shlomif-fav"
let ++c
done
if false
then
sudo adduser --disabled-password --gecos '' "$USER"
sudo usermod -a -G sudo "$USER"
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
fi
EOSCRIPTTTTTTT

$obj->exe_bash_code( { code => $script, } );
Expand Down

0 comments on commit 51be4d2

Please sign in to comment.