From e057a21962fe9e81b47cfd6b97fc4c6c2cb156b9 Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Mon, 20 Jul 2026 16:08:58 -0400 Subject: clean ups and clarifications --- TODO | 9 --------- packages/swenu/swenu.sh | 15 +++++++++++++++ snag/Makefile | 22 ---------------------- snag/main.c | 2 +- snag/makefile | 22 ++++++++++++++++++++++ snag/readme.txt | 8 ++++---- snaggies/swenu/swenu.sh | 15 --------------- todo.txt | 9 +++++++++ 8 files changed, 51 insertions(+), 51 deletions(-) delete mode 100644 TODO create mode 100644 packages/swenu/swenu.sh delete mode 100644 snag/Makefile create mode 100644 snag/makefile delete mode 100644 snaggies/swenu/swenu.sh create mode 100644 todo.txt diff --git a/TODO b/TODO deleted file mode 100644 index 7cf102e..0000000 --- a/TODO +++ /dev/null @@ -1,9 +0,0 @@ -SNAG -- [ ] make install subcommand actually run the install script -- [ ] multiple subcommand handling and proper argument parsing -- [ ] figure out how we handle make configuration, and tools for build scripts -- [ ] dependencies - -Things to come back to - - [ ] Optional package info attributes - - [ ] better memory allocation strategies for snag (temporary, arena) \ No newline at end of file diff --git a/packages/swenu/swenu.sh b/packages/swenu/swenu.sh new file mode 100644 index 0000000..8fdf584 --- /dev/null +++ b/packages/swenu/swenu.sh @@ -0,0 +1,15 @@ +pkg_id=swenu +pkg_name="Swenu" +pkg_desc="Simple Wayland ENU" + +configure() { + echo "configuring swenu..." +} + +build() { + echo "building swenu..." +} + +install() { + echo "installing swenu..." +} diff --git a/snag/Makefile b/snag/Makefile deleted file mode 100644 index 8fa032c..0000000 --- a/snag/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -CC = gcc -CFLAGS = -Wall -g - -TARGET = snag - -SRCS = main.c -OBJS = $(SRCS:.c=.o) - -.SILENT: $(OBJS) $(TARGET) - -all: $(TARGET) - -clean: - rm -f $(OBJS) $(TARGET) - -$(TARGET): $(OBJS) - printf " LD %s\n" $@ - $(CC) $(CFLAGS) -o $@ $< - -%.o: %.c - printf " CC %s\n" $< - $(CC) $(CFLAGS) -c $< -o $@ diff --git a/snag/main.c b/snag/main.c index c80ec65..0b5f442 100644 --- a/snag/main.c +++ b/snag/main.c @@ -4,7 +4,7 @@ #include #include -#define PKG_DB "../snaggies" +#define PKG_DB "../packages" #define PKG_INFO_CMD "./get_pkg_attrs.sh" typedef struct { diff --git a/snag/makefile b/snag/makefile new file mode 100644 index 0000000..8fa032c --- /dev/null +++ b/snag/makefile @@ -0,0 +1,22 @@ +CC = gcc +CFLAGS = -Wall -g + +TARGET = snag + +SRCS = main.c +OBJS = $(SRCS:.c=.o) + +.SILENT: $(OBJS) $(TARGET) + +all: $(TARGET) + +clean: + rm -f $(OBJS) $(TARGET) + +$(TARGET): $(OBJS) + printf " LD %s\n" $@ + $(CC) $(CFLAGS) -o $@ $< + +%.o: %.c + printf " CC %s\n" $< + $(CC) $(CFLAGS) -c $< -o $@ diff --git a/snag/readme.txt b/snag/readme.txt index 6062924..ca358b6 100644 --- a/snag/readme.txt +++ b/snag/readme.txt @@ -1,14 +1,14 @@ -# SNAG Package Manager +# SNAGGLE Package Manager (snag) ## Useful Subcommands `install`/`inst` - install the specified package(s) (default) `remove` - uninstall the specified package(s) `upgrade/'up` - upgrade the package database -`find`/`search` - list packages whose metadata matches specified search string -`info`/`desc` - describe the metadata of the specified package(s) +`find`/`search` - list packages whose metadata matches specified search string (flag to limit to installed) +`info`/`desc` - describe the metadata (and install data) of the specified package(s) +`log` - open your pager to the build log of the specified package `files` - list the installed files of the specified package(s) -`log` - open your pager to the build log of the specified package `why` - list why this package is installed (manually installed, as a dependency, from a group) ## Important Directories diff --git a/snaggies/swenu/swenu.sh b/snaggies/swenu/swenu.sh deleted file mode 100644 index 8fdf584..0000000 --- a/snaggies/swenu/swenu.sh +++ /dev/null @@ -1,15 +0,0 @@ -pkg_id=swenu -pkg_name="Swenu" -pkg_desc="Simple Wayland ENU" - -configure() { - echo "configuring swenu..." -} - -build() { - echo "building swenu..." -} - -install() { - echo "installing swenu..." -} diff --git a/todo.txt b/todo.txt new file mode 100644 index 0000000..7cf102e --- /dev/null +++ b/todo.txt @@ -0,0 +1,9 @@ +SNAG +- [ ] make install subcommand actually run the install script +- [ ] multiple subcommand handling and proper argument parsing +- [ ] figure out how we handle make configuration, and tools for build scripts +- [ ] dependencies + +Things to come back to + - [ ] Optional package info attributes + - [ ] better memory allocation strategies for snag (temporary, arena) \ No newline at end of file -- cgit v1.2.3