From 373e43c74554d34f6332df3ecb95b3bced26bb7ac6ea364a0c1e2a751fff6399 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 4 Dec 2024 08:56:14 +0000 Subject: [PATCH] Moving to devel project OBS-URL: https://build.opensuse.org/package/show/devel:languages:hare/rc?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + _service | 17 ++++++ _servicedata | 4 ++ rc-0+git.1725436050.2b2d211.obscpio | 3 + rc.changes | 94 +++++++++++++++++++++++++++++ rc.obsinfo | 4 ++ rc.spec | 62 +++++++++++++++++++ 8 files changed, 208 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 rc-0+git.1725436050.2b2d211.obscpio create mode 100644 rc.changes create mode 100644 rc.obsinfo create mode 100644 rc.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..d06fd9a --- /dev/null +++ b/_service @@ -0,0 +1,17 @@ + + + https://git.sr.ht/~sircmpwn/rc + 0+git + git + master + enable + mcepl@cepl.eu + + + + *.tar + zst + + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..f456b59 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://git.sr.ht/~sircmpwn/rc + 2b2d211026a5025e9aab30c2000a54a29cdf5ef3 \ No newline at end of file diff --git a/rc-0+git.1725436050.2b2d211.obscpio b/rc-0+git.1725436050.2b2d211.obscpio new file mode 100644 index 0000000..3ec431f --- /dev/null +++ b/rc-0+git.1725436050.2b2d211.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bf54a89c644d4cd0415a9b86dbed2d90d7f421feaead2d243de23f5c8f108fbe +size 161291 diff --git a/rc.changes b/rc.changes new file mode 100644 index 0000000..af79af7 --- /dev/null +++ b/rc.changes @@ -0,0 +1,94 @@ +------------------------------------------------------------------- +Wed Oct 23 10:54:19 UTC 2024 - mcepl@cepl.eu + +- Update to version 0+git.1725436050.2b2d211: + * Makefile: accept HAREFLAGS + * interp: update for iterator changes upstream + +------------------------------------------------------------------- +Mon May 13 09:22:49 UTC 2024 - Matej Cepl + +- Shell belongs to /bin. + +------------------------------------------------------------------- +Sun May 12 22:40:38 UTC 2024 - mcepl@cepl.eu + +- Update to version 0+git.1710699033.2e5495e: + * test: add (some of) builtin.rc + * test: add switch test + * interp: use buffered write on builtin_read + * interp: skip empty tokens on splitting + * interp: fix read builtin printing to stdout + * rc/interactive: update to latest madeline + * Implement `"ifs"{...} + * interp::value: disallow nested lists + * exec_assign: return $status + * interp: add read built-in + * lex::lexarg: remove @ from nonarg list + * interp: drop obsolete TODO + * Source /etc/profile.rc if running as login shell + * Use parent interpreter context in interactive mode + * README.md: add prefix note + * all (scripts): replace dc with expr + * set builtin: add new flags + * Implement simple pipefail equivalent + * parse: Allow whitespace in assignments + * parse: remove unreachable abort + * parse: Accept whitespace in variable sub-list access + * rc(1): Escape backticks + * rc(1): document $'var + * all: use dupflags in io::dup{,2} + * interp: implement exec built-in + * rc: move istty after initialization + * all: port to +gaia + * doc/grammar.txt: add index + * Implement variable sub-list access using other variables + * interp: implement ~user + * rc(1): document rcstart + * rc(1): fix error and typos + * Implement the variable sub-list operator + * rc(1): fix formatting + * lex: allow dots in function names + * interp: fix assertion failure + * lib/getopt.rc: fix no-option case + * all: fix argument storage in loop contexts + * lib/getopt.rc: initial commit + * interp/exec: special-case ~ + * interp: fix use-after-free + * lex: fix unterminated heredoc + * Parse semicolons in command lists + * Implement >> append redirects + * Finish basic heredoc implementation + * lex: lex simple here-docs + * harness.rc: detect unpaired begin/end + * test/loops: fix unmatched begin/end + * doc/grammar.txt: add heredoc grammar + * interp: correct comment + * doc/grammar.txt: remove arithmetic & logic + * Preserve exit status on command expansion + * interp: return 0 from if + * implement break, continue + * test: add loops.rc + * Implement return + * (basic) implementation of rc -x/set -x + * rc: set -e by default for non-interactive shell + * Implement set -e (and rc -e) + * interp: expand tilde + * Various updates per upstream Hare changes + * update to bufio changes upstream + * @noreturn -> never + +------------------------------------------------------------------- +Wed Aug 09 16:03:51 UTC 2023 - mcepl@cepl.eu + +- Update to version 0+git.1691405423.28c3a67: + * all: updates per upstream hare changes + * interp: don't use NOCHECK on globs + * lex: remove & from non-arg list + * parse: remove temporary import + * Add basic test suite + * Implement ! commands + * Remove = from non-arg list + * cd: implement cd - + * cd: set $PWD and $OLDPWD + * fix ui for ^C diff --git a/rc.obsinfo b/rc.obsinfo new file mode 100644 index 0000000..704c705 --- /dev/null +++ b/rc.obsinfo @@ -0,0 +1,4 @@ +name: rc +version: 0+git.1725436050.2b2d211 +mtime: 1725436050 +commit: 2b2d211026a5025e9aab30c2000a54a29cdf5ef3 diff --git a/rc.spec b/rc.spec new file mode 100644 index 0000000..1777c77 --- /dev/null +++ b/rc.spec @@ -0,0 +1,62 @@ +# +# spec file for package harec +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define haredir %{_usrsrc}/hare +Name: rc +Release: 0 +Version: 0+git.1725436050.2b2d211 +Summary: A simple shell +URL: https://git.sr.ht/~sircmpwn/rc +Source0: %{name}-%{version}.tar.zst +BuildRequires: make +BuildRequires: hare +BuildRequires: madeline +BuildRequires: scdoc +BuildRequires: zstd +# For testing +BuildRequires: bc +License: GPL-3.0-only + +%description +rc is an experimental shell for Unix inspired by Plan 9's rc. + +More information on the original rc is at +https://doc.cat-v.org/plan_9/4th_edition/papers/rc, or +https://en.wikipedia.org/wiki/Rc. + +%prep +%autosetup -p1 + +%build +%make_build + + +%install +# Shells should go to /bin +%make_install BINDIR="%{_bindir}" PREFIX=/ MANDIR="%{_mandir}" + +%check +make check + +%files +/bin/%{name} +%license COPYING +%doc README.md +%{_mandir}/man1/rc.1%{?ext_man} + +%changelog