mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
meson build support
This commit is contained in:
parent
fb85fdec5c
commit
db16a0a853
57 changed files with 1787 additions and 46 deletions
|
|
@ -1,14 +1,20 @@
|
|||
#!/bin/sh
|
||||
|
||||
DATE=`GIT_DIR=$1/.git git log -1 --pretty=format:%ai HEAD`
|
||||
DATE=`GIT_DIR=$1/.git git log -1 --pretty=format:%ai HEAD 2>/dev/null`
|
||||
|
||||
VERSION_DATE=`echo $DATE | cut -f 1 -d ' ' | tr -d -`
|
||||
VERSION_TIME=`echo $DATE | cut -f 2 -d ' ' | awk -F: '{printf "%d", $1$2}'`
|
||||
|
||||
if test -z "$VERSION_DATE"; then
|
||||
exec>&2
|
||||
echo "**Error**: `basename "$0"` must be run in a git clone, cannot proceed."
|
||||
exit 1
|
||||
DATE=`grep '^v' $1/NEWS | head -1`
|
||||
VERSION_DATE=`echo "$DATE" | cut -f 2 -d ' ' | tr -d -`
|
||||
case $VERSION_DATE in
|
||||
*xx)
|
||||
VERSION_DATE=`date +%Y%m%d`
|
||||
;;
|
||||
esac
|
||||
VERSION_TIME=`echo "$DATE" | cut -f 1 -d ' ' | tr -d v | tr .- ' '`
|
||||
VERSION_TIME=`printf %d%d%02d $VERSION_TIME 2>/dev/null`
|
||||
fi
|
||||
|
||||
echo "#define IRSSI_VERSION_DATE $VERSION_DATE"
|
||||
|
|
@ -16,7 +22,7 @@ echo "#define IRSSI_VERSION_TIME $VERSION_TIME"
|
|||
|
||||
if echo "${VERSION}" | grep -q -- -head; then
|
||||
# -head version, get extra details from git if we can
|
||||
git_version=$(GIT_DIR=$1/.git git describe --dirty --long --always --tags)
|
||||
git_version=$(GIT_DIR=$1/.git git describe --dirty --long --always --tags 2>/dev/null)
|
||||
if [ $? = 0 ]; then
|
||||
echo "#undef PACKAGE_VERSION"
|
||||
echo "#define PACKAGE_VERSION \"${git_version}\""
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ foreach $file (@files) {
|
|||
}
|
||||
while (<docs/help/in/*.in>) {
|
||||
next if (/Makefile/);
|
||||
next if (/meson\.build/);
|
||||
|
||||
open (FILE, "$_");
|
||||
@data = <FILE>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue