mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-03-13 08:00:15 +00:00
Stop picking the DB version from dba/davical.sql as now we just use the patches
This commit is contained in:
parent
aa35bc6e6d
commit
4a64af43f8
@ -4,12 +4,10 @@
|
||||
#
|
||||
|
||||
DAVICAL_VERSION="`head -n1 VERSION`"
|
||||
DB_VERSION="`grep 'SELECT new_db_revision' dba/davical.sql | cut -f2 -d'(' | cut -f1-3 -d,`"
|
||||
AWL_VERSION="`head -n1 ../awl/VERSION`"
|
||||
if [ -z "${AWL_VERSION}" ] ; then
|
||||
AWL_VERSION="`grep 'want_awl_version' inc/always.php.in | cut -f2 -d= | cut -f1 -d';' | sed 's: ::g'`"
|
||||
fi
|
||||
|
||||
sed -e "/^ *.c->version_string *= *'[^']*' *;/ s/^ *.c->version_string *= *'[^']*' *;/\$c->version_string = '${DAVICAL_VERSION}';/" \
|
||||
-e "/^ *.c->want_dbversion *=.*$/ s/^ *.c->want_dbversion *=.*$/\$c->want_dbversion = array(${DB_VERSION});/" \
|
||||
-e "/^ *.c->want_awl_version *=.*$/ s/^ *.c->want_awl_version *=.*$/\$c->want_awl_version = '${AWL_VERSION}';/"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user