Re: [dev] [sbase] Defining scope of sbase and ubase
On Sat, 09 Mar 2024 12:10:28 +0100
Eolien55 <eolien55_AT_disroot.org> wrote:
> Mattias Andrée <maandree_AT_kth.se> wrote:
> > I think there should be one directory called "portable" containing only tools
> > from sbase, and one directory called "linux" containing the tools from ubase
> > and maybe even symlinks to the tools in "portable". This structure would allow
> > us to add implementations for other operating systems as well. If we add
> > symlinks to the tools in "portable" to "linux", each directory could have
> > it's own makefile. But I'm not sure this is preferable over a single Makefile
> > in the root directory.
>
> This is a great idea! Your mail on the other branch is a great idea too.
> I think we should have platform-specific libutil for unportable functions
> in ubase's libutil (so, linux/libutil, openbsd/libutil and so on, if we
> do actually add implementations for other OSes), and a top-level libutil
> too.
>
> This could maybe allow adding platform-agnostic implementations of some utils
> (not all because some APIs are so different that it requires full rewrites,
> but maybe some, such as clear, stty, tput, or dd maybe).
>
> I will start hacking on it, and will post the git repository for it
> when it builds correctly.
>
> I'm not sure how you combine two repositories into one while keeping the
> history though.
git init .
git pull git://git.suckless.org/sbase
git branch -M master sbase
mkdir sbase
mv * .gitignore sbase
git add .
git commit -m 'Move all of sbase into its own directory'
git checkout --orphan master
git rm -rf .
git pull git://git.suckless.org/ubase
git branch -M master ubase
mkdir ubase
mv * .gitignore ubase
git add .
git commit -m 'Move all of ubase into its own directory'
git checkout --orphan master
git rm -rf .
git pull --allow-unrelated-histories . sbase
git pull --allow-unrelated-histories . ubase
>
> Regards,
> Elie Le Vaillant
>
Received on Sat Mar 09 2024 - 14:27:24 CET
This archive was generated by hypermail 2.3.0
: Sat Mar 09 2024 - 14:36:09 CET