Commit Graph

36 Commits

Author SHA1 Message Date
Michael Forney 10b83649e9 Use source revision in commit message 2019-06-19 12:20:18 -07:00
Michael Forney b745c9ac80 Update lpeg package name in repology 2019-05-04 13:12:03 -07:00
Michael Forney 680d4261df scripts/commit.sh: Fix when branch doesn't already exist 2019-04-09 23:02:46 -07:00
Michael Forney 86f67d71e0 scripts/commit.sh: Only commit if tree changed 2019-04-09 20:09:25 -07:00
Michael Forney 020a443e3b Add script to check for out-of-date packages 2019-03-19 11:35:56 -07:00
Michael Forney e5bb6756c1 Allow overriding pax command with PAXREAD
Most systems do not have pax installed by default, or it is not available
at all. However, since we are relying on the -s flag for member name
substitution, we can't just use a tar command that works everywhere.

Instead, support the environment variable PAXREAD to specify the command
to use in place of `pax -r`. Since bsdtar from libarchive supports -s,
we can set PAXREAD='bsdtar -xf -'.
2019-03-11 12:20:37 -07:00
Michael Forney 96bcd25021 Add mechanism to probe for size of type 2018-10-18 12:58:46 -07:00
Michael Forney 741d252822 Port build scripts to POSIX shell
Since we are now using Lua to generate ninja files, use of rc in build scripts
seems unnecessary and adds an additional bootstrap dependency. None of them are
too fancy, so just port to POSIX sh instead.
2018-02-16 02:52:34 -08:00
Michael Forney 224b5fdbf9 Add mechanism to probe for toolchain features 2017-10-23 21:43:52 -07:00
Michael Forney 8bfb60a368 fetch-curl: Allow overriding substitutions 2017-10-10 03:22:25 -07:00
Michael Forney 986c031e1c Add texi2mdoc 0.1.2 2017-09-25 19:23:07 -07:00
Michael Forney 5915e9ccc6 fetch-*.rc does not need to be executable
We always call it with rc explicitly.
2017-09-01 17:59:36 -07:00
Michael Forney 6172f9ace7 scripts/tree.rc: Write index in $outdir 2017-02-25 14:50:33 -08:00
Michael Forney a0b389e9f3 scripts/tree.rc: Don't clobber repository index
The repository index should be preserved if writing directly to the /
repository.
2017-02-10 19:34:52 -08:00
Michael Forney 38d0eb124d fetch-curl: If not specified use */* as extraction pattern
Some pax implementations will fail otherwise if src already exists.
2017-01-03 22:49:57 -08:00
Michael Forney d29f7e5d53 fetch-curl: Specify -O at the end in case we want to specify an output name 2016-12-29 23:29:18 -08:00
Michael Forney 36c037effc Allow using /.git as output repository 2016-12-29 23:29:07 -08:00
Michael Forney 92751409f7 Provide mechanism to track library dependencies
Now, ar/lib rules can list static libraries or other .d files. These (as well as
the target library) are written to a file called $lib.d. link/exe rules can list
these .d files, causing them to be flattened into an RSP file and appear on the
command line as @$rsp.

The rule to generate the dependency list files depends on the libraries they
contain, so they also act as a stamp file for the dependencies. This gives us
dependency management for free.
2016-10-30 13:44:58 -07:00
Michael Forney 78c4cc0023 Don't list git repository files as outputs
This way, ninja -t clean will work as expected.
2016-07-16 14:23:20 -07:00
Michael Forney 51e359b2f8 tzdata: Fix gen.rc to not require contents of source files
This also fixes a symlink target calculation bug.
2016-07-04 21:47:29 -07:00
Michael Forney 98f6b74513 fetch-curl: Support specifying a pattern of files to extract 2016-06-28 00:35:03 -07:00
Michael Forney 153ac63e5c fetch-curl: Match archives more strictly 2016-06-28 00:33:08 -07:00
Michael Forney 698113c957 Don't warn about whitespace errors when applying patches 2016-06-27 23:54:20 -07:00
Michael Forney f732e53f58 Integrate source fetching into ninja files 2016-06-27 20:30:15 -07:00
Michael Forney cd95be727e Add global fetch.rc script 2016-06-07 00:43:30 -07:00
Michael Forney 1d5c144ff0 Move fetch-curl.rc to scripts 2016-06-06 21:41:46 -07:00
Michael Forney dac3b279e3 Fix special permission handling 2016-06-06 20:38:54 -07:00
Michael Forney 66ed83a51f Don't use head -c -1; it's not portable 2016-04-23 16:51:19 -07:00
Michael Forney b63a2d5a69 Add commit script to generate commit history
This will make it easier for users to merge changes into their trees.
2016-04-23 16:51:19 -07:00
Michael Forney 32df789b09 Use empty checkstatus function
Since it is considered a simple command, it will trigger a failure if
the previous command had failed.
2016-04-23 16:51:19 -07:00
Michael Forney e2be6f64fa Add config-posix.h header and configheader.rc script to help with packages using config.h.in 2016-04-17 15:28:02 -07:00
Michael Forney 142c5870a9 Use the name "oldcwd" for previous working directory 2016-04-16 02:01:32 -07:00
Michael Forney 20a3b2ad44 Allow independent generation of ninja files 2016-04-15 02:10:08 -07:00
Michael Forney c6317771d2 scripts: Check status of commands with captured output 2016-04-15 02:10:08 -07:00
Michael Forney 94080b6ea8 Use git tag file as gittree output 2016-04-15 02:10:08 -07:00
Michael Forney dbb513d457 Add some initial packages 2016-04-15 02:10:08 -07:00