mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
Merge pull request #1102 from ailin-nemui/buildsys-ver
fix wrong version in version-date when building git with merges of old commits on top
This commit is contained in:
commit
bdb25aa609
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
DATE=`GIT_DIR=$1/.git git log -1 --pretty=format:%ai HEAD 2>/dev/null`
|
DATE=`GIT_DIR=$1/.git git log -1 --pretty=format:%ci HEAD 2>/dev/null`
|
||||||
|
|
||||||
VERSION_DATE=`echo $DATE | cut -f 1 -d ' ' | tr -d -`
|
VERSION_DATE=`echo $DATE | cut -f 1 -d ' ' | tr -d -`
|
||||||
VERSION_TIME=`echo $DATE | cut -f 2 -d ' ' | awk -F: '{printf "%d", $1$2}'`
|
VERSION_TIME=`echo $DATE | cut -f 2 -d ' ' | awk -F: '{printf "%d", $1$2}'`
|
||||||
|
Loading…
Reference in New Issue
Block a user