Author: nbd
Date: 2015-07-15 10:17:49 +0200 (Wed, 15 Jul 2015)
New Revision: 46383

Modified:
   trunk/scripts/ipkg-build
Log:
scripts/ipkg-build: fix a build regression introduced in r46360 (fixes #20082)

go to the $TOPDIR directory before trying to extract a git/svn timestamp

Signed-off-by: Felix Fietkau <[email protected]>

Modified: trunk/scripts/ipkg-build
===================================================================
--- trunk/scripts/ipkg-build    2015-07-15 08:17:42 UTC (rev 46382)
+++ trunk/scripts/ipkg-build    2015-07-15 08:17:49 UTC (rev 46383)
@@ -19,7 +19,7 @@
 
 # look up date of last commit
 if [ -d "$TOPDIR/.git" ]; then
-       TIMESTAMP=$($GIT log -1 -s --format=%ci)
+       TIMESTAMP=$(cd $TOPDIR; $GIT log -1 -s --format=%ci)
 elif [ -d "$TOPDIR/.svn" ]; then
        TIMESTAMP=$($SVN info "$TOPDIR" | sed -n "s/^Last Changed Date: 
\(.*\)/\1/p")
 else
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to