Draft for an autopatch 'framework'

This commit is contained in:
Alexandre Aubin
2020-06-09 19:09:27 +02:00
parent 063a72cd4d
commit 5f78d99af1
4 changed files with 205 additions and 0 deletions

View File

@ -0,0 +1,12 @@
PHP_DEPS="php-bcmath php-cli php-curl php-dev php-gd php-gmp php-imap php-intl php-json php-ldap php-mbstring php-mysql php-soap php-sqlite3 php-tidy php-xml php-xmlrpc php-zip php-dom php-opcache php-xsl php-apcu php-geoip php-imagick php-memcached php-redis php-ssh2 php-common"
grep -q -nr "php-" scripts/* || exit 0
for DEP in $PHP_DEPS
do
NEWDEP=$(echo $DEP | sed 's/php-/php7.0-/g')
[ ! -e ./scripts/_common.sh ] || sed "/^\s*#/!s/$DEP/$NEWDEP/g" -i ./scripts/_common.sh
[ ! -e ./scripts/install ] || sed "/^\s*#/!s/$DEP/$NEWDEP/g" -i ./scripts/install
[ ! -e ./scripts/upgrade ] || sed "/^\s*#/!s/$DEP/$NEWDEP/g" -i ./scripts/upgrade
[ ! -e ./scripts/restore ] || sed "/^\s*#/!s/$DEP/$NEWDEP/g" -i ./scripts/restore
done

View File

@ -0,0 +1 @@
(This a test for now, please ignore, sorry for the noise)

View File

@ -0,0 +1 @@
Explicitly version for php dependencies