pkgmk extract only

Lucas Hazel lucas at die.net.au
Sat Jul 7 11:19:47 UTC 2007


Not sure why there isn't an option for this?

diff --git a/pkgmk.in b/pkgmk.in
index 1ac4614..7eeee68 100755
--- a/pkgmk.in
+++ b/pkgmk.in
@@ -517,6 +517,8 @@ parse_options() {
                        -do|--download-only)
                                PKGMK_DOWNLOAD="yes"
                                PKGMK_DOWNLOAD_ONLY="yes" ;;
+                       -e |--extract-only)
+                               PKGMK_EXTRACT_ONLY="yes";;
                        -utd|--up-to-date)
                                PKGMK_UP_TO_DATE="yes" ;;
                        -uf|--update-footprint)
@@ -642,6 +644,11 @@ main() {
                exit 0
        fi
        
+       if ["$PKGMK_EXTRACT_ONLY" = "yes" ]; then
+               unpack_source
+               exit 0
+       fi
+       
        if [ "$PKGMK_UP_TO_DATE" = "yes" ]; then
                if [ "`build_needed`" = "yes" ]; then
                        info "Package '$TARGET' is not up to date."


-- 
Lucas Hazel <lucas at die.net.au>

=================================================

"Clothes make the man. Naked men are rarely taken
seriously, or given employment." 

=================================================



More information about the CRUX mailing list