💾 Archived View for gmi.noulin.net › gitRepositories › systemSetup › file › slackware › build.c.gmi captured on 2024-08-25 at 09:13:42. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

systemSetup

Log

Files

Refs

README

LICENSE

build.c (746B)

     1 #! /usr/bin/env sheepy
     2 #include "libsheepyObject.h"
     3 
     4 int main(int ARGC, char** ARGV) {
     5 
     6   initLibsheepy(ARGV[0]);
     7   setLogMode(LOG_VERBOSE);
     8 
     9   if (ARGC != 3) {
    10     logI("Usage: build slackBuildURL sourceDownloadURL");
    11     ret 1;
    12   }
    13 
    14   char *tar = basename(ARGV[1]);
    15   //logVarG(tar);
    16 
    17   logSystemf("wget %s ; tar xf %s", ARGV[1], tar);
    18 
    19   setS(tar,-7, 0);
    20   //logVarG(tar);
    21 
    22   chDir(tar);
    23 
    24   cleanListP(log) = logSystemOutf("wget %s ; ./%s.SlackBuild", ARGV[2], tar);
    25 
    26   // Slackware package /tmp/dmenu-4.9-x86_64-1_SBo.tgz created.
    27   
    28   char *l = iListGetS(log, -2);
    29   //logVarG(l);
    30 
    31   cleanListP(ll) = extractG(l, " /tmp", ".tgz ");
    32   //logVarG(ll);
    33 
    34   logSystemf("installpkg /tmp%s.tgz", ll[0]);
    35 
    36   ret 0;
    37 }
    38 // vim: set expandtab ts=2 sw=2: