tprtmk now handle git commits - scripts - various script and utils
(HTM) git clone git://z3bra.org/scripts
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit d8354e5e9c4bcdadbb17ce8f29bcaaea99f84c9a
(DIR) parent f4af4e348fd78a23b3dcd1a6acac515daee32bf5
(HTM) Author: z3bra <willy@mailoo.org>
Date: Wed, 22 Oct 2014 16:53:06 +0200
prtmk now handle git commits
Diffstat:
M prtmk | 6 ++++++
1 file changed, 6 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/prtmk b/prtmk
t@@ -26,9 +26,14 @@ read -p 'Depends on : ' depends
PORTDIR=$PORTDIR/$name
if test "$version" = "git"; then
+
git_url=$sources
sources=''
+ read -p 'Git commit : ' sversion
+
+ version=git-$(echo $sversion | cut -c-7)
+
PKGFILE=${PKGFILE}-git
PORTDIR=${PORTDIR}-git
else
t@@ -66,6 +71,7 @@ sed \
-e "s__VERSION__$version" \
-e "s__SOURCE__$sources" \
-e "s__GIT_URL__$git_url" \
+ -e "s__GIT_HASH__$sversion" \
-i $PORTDIR/Pkgfile
echo_color 2 OK