mason.source: save git-id in source packages, just like binary packages
parent
3e5e3a6d3f
commit
97428db921
|
@ -8,11 +8,17 @@ IN: mason.source
|
||||||
: clone-factor ( -- )
|
: clone-factor ( -- )
|
||||||
{ "git" "clone" } home "factor" append-path suffix try-process ;
|
{ "git" "clone" } home "factor" append-path suffix try-process ;
|
||||||
|
|
||||||
|
: save-git-id ( -- )
|
||||||
|
git-id "git-id" to-file ;
|
||||||
|
|
||||||
|
: delete-git-tree ( -- )
|
||||||
|
".git" delete-tree ;
|
||||||
|
|
||||||
|
: download-images ( -- )
|
||||||
|
images [ download-image ] each ;
|
||||||
|
|
||||||
: prepare-source ( -- )
|
: prepare-source ( -- )
|
||||||
"factor" [
|
"factor" [ save-git-id delete-git-tree download-images ] with-directory ;
|
||||||
".git" delete-tree
|
|
||||||
images [ download-image ] each
|
|
||||||
] with-directory ;
|
|
||||||
|
|
||||||
: package-name ( version -- string )
|
: package-name ( version -- string )
|
||||||
"factor-src-" ".zip" surround ;
|
"factor-src-" ".zip" surround ;
|
||||||
|
|
Loading…
Reference in New Issue