mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-18 06:23:02 +08:00
🎄 Sync 2026-11-14 17:29:54
This commit is contained in:
1 parent
00efd4e7cf
commit
4e24fe7535
123 files changed
+26051
No files matched your search
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
# The Makefile is the single version source. root/usr/share/carbon/version is
|
||||
# its packaged copy; the theme header and carbon.js read it at runtime.
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
ver="$(sed -n 's/^PKG_VERSION:=//p' Makefile)-r$(sed -n 's/^PKG_RELEASE:=//p' Makefile)"
|
||||
if [ "$(cat root/usr/share/carbon/version)" != "$ver" ]; then
|
||||
echo "root/usr/share/carbon/version must contain $ver" >&2
|
||||
exit 1
|
||||
fi
|
||||
if grep -rnE '\?v=[0-9]|C\.version *= *.[0-9]' ucode htdocs; then
|
||||
echo "Hard-coded theme version found; read it from /usr/share/carbon/version instead" >&2
|
||||
exit 1
|
||||
fi
|
||||
echo "version $ver"
|
||||
Reference in new issue
Block a user