- Canonicalize TOPDIR
- Fix github issue reference URLs
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
}
}
-export TOPDIR
+export TOPDIR=$(cd "$TOPDIR"; pwd)
export PATH="$TOPDIR/staging_dir/host/bin:$PATH"
eval $(
'#'[0-9]*)
case "$PKG_SOURCE_URL" in
*://github.com/*)
- echo "${PKG_SOURCE_URL%/}/issues/${issue#\#}"
+ repourl=${PKG_SOURCE_URL%/}
+ repourl=${repourl%.git}
+ echo "${repourl}/issues/${issue#\#}"
;;
*://git.openwrt.org/project/*)
project=${PKG_SOURCE_URL#*://git.openwrt.org/project/}