$ git clone https://github.com/tio/tio tio-orig
$ cp -far tio-orig tio
$ cd tio
$ git rev-list --objects --all | git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' | sed -n 's/^blob //p' | sort -r --numeric-sort --key=2 | less
$ git filter-branch --force --index-filter "git rm --cached --ignore-unmatch images/tio-demo.gif *meson*" --prune-empty --tag-name-filter cat -- --all
## cp tio-orig/{rm-files} tio (see git show), edit .git/config
$ git add -A
$ git commit -m "1.44: Makefile"
$ git show
commit 6a70b9060eeea7ebd19087ac928039f782618dc0 (HEAD -> master, origin/master, origin/HEAD)
Author: zvezdochiot <mykaralw@yandex.ru>
Date: Thu Jul 14 11:53:14 2022 +0300
1.45: Makefile
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0fa8f05
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,37 @@
+TARGET=tio
+VERSION=1.44
+BAUDRATES=0 50 75 110 134 150 200 300 600 1200 1800 2400 4800 9600 19200 38400 57600 115200 230400 460800 500000 576000 921600 1000000 1152000 1500000 2000000 2500000 3000000 3500000 4000000 # not found: 7200 14400 28800 76800
+
+CC=cc
+CFLAGS=-Wall -std=gnu99 -Isrc
+LDFLAGS= -linih -s
+RM = rm -f
+SRCS = \
+ src/configfile.c \
+ src/error.c \
+ src/log.c \
+ src/misc.c \
+ src/options.c \
+ src/print.c \
+ src/setspeed.c \
+ src/signals.c \
+ src/socket.c \
+ src/tty.c \
+ src/main.c
+
+all: $(TARGET)
+
+$(TARGET): $(SRCS) src/config.h
+ $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
+
+src/config.h:
+ printf "#define VERSION \"$(VERSION)\" \n" > $@
+ if test -f "`find /usr/include | grep -m 1 asm-generic/ioctls.h`"; then printf "#define HAVE_TERMIOS2\n" >> $@; fi
+ if test -f "`find /usr/include | grep -m 1 IOKit/serial/ioss.h`"; then printf "#define HAVE_IOSSIOSPEED\n" >> $@; fi
+ printf "#define BAUDRATE_CASES" >> $@
+ for baud in $(BAUDRATES); do printf " case $${baud}: baudrate = B$${baud}; break;"; done >> $@
+ printf "\n" >> $@
+
+clean:
+ $(RM) $(TARGET) src/config.h
+
diff --git a/README.md b/README.md
index 15e96f0..b617561 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,16 @@
+`Origin__`:
+
+
+
+
+
+`ORG.FSMS`:
+
+
+
+
+
+
# tio - a simple serial device I/O tool
[](https://circleci.com/gh/tio/tio/tree/master)
diff --git a/src/bash-completion/tio.in b/bash-completion/tio
similarity index 100%
rename from src/bash-completion/tio.in
rename to bash-completion/tio
diff --git a/images/tio-demo.gif b/images/tio-demo.gif
new file mode 100644
index 0000000..ef4da5d
Binary files /dev/null and b/images/tio-demo.gif differ
diff --git a/man/tio.1.in b/man/man1/tio.1
similarity index 99%
rename from man/tio.1.in
rename to man/man1/tio.1
index e7b5357..5b1563f 100644
--- a/man/tio.1.in
+++ b/man/man1/tio.1
@@ -1,4 +1,4 @@
-.TH "tio" "1" "@version_date@" "tio @version@" "User Commands"
+.TH "tio" "1" "2022-07-13" "tio 1.45" "User Commands"
.SH "NAME"
tio \- a simple serial device I/O tool
$ git gc --prune=now --aggressive
$ git gc --prune=now --aggressive
$ git gc --prune=now --aggressive
$ git push origin --force --all
$ git push origin --force --tags
$ cd ..
$ rm -frv tio
$ git clone git@github.com:FS-make-simple/tio.git
commit 6a70b9060eeea7ebd19087ac928039f782618dc0 (HEAD -> master, origin/master, origin/HEAD) Author: zvezdochiot <mykaralw@yandex.ru> Date: Thu Jul 14 11:53:14 2022 +0300 1.45: Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0fa8f05 --- /dev/null +++ b/Makefile @@ -0,0 +1,37 @@ +TARGET=tio +VERSION=1.44 +BAUDRATES=0 50 75 110 134 150 200 300 600 1200 1800 2400 4800 9600 19200 38400 57600 115200 230400 460800 500000 576000 921600 1000000 1152000 1500000 2000000 2500000 3000000 3500000 4000000 # not found: 7200 14400 28800 76800 + +CC=cc +CFLAGS=-Wall -std=gnu99 -Isrc +LDFLAGS= -linih -s +RM = rm -f +SRCS = \ + src/configfile.c \ + src/error.c \ + src/log.c \ + src/misc.c \ + src/options.c \ + src/print.c \ + src/setspeed.c \ + src/signals.c \ + src/socket.c \ + src/tty.c \ + src/main.c + +all: $(TARGET) + +$(TARGET): $(SRCS) src/config.h + $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) + +src/config.h: + printf "#define VERSION \"$(VERSION)\" \n" > $@ + if test -f "`find /usr/include | grep -m 1 asm-generic/ioctls.h`"; then printf "#define HAVE_TERMIOS2\n" >> $@; fi + if test -f "`find /usr/include | grep -m 1 IOKit/serial/ioss.h`"; then printf "#define HAVE_IOSSIOSPEED\n" >> $@; fi + printf "#define BAUDRATE_CASES" >> $@ + for baud in $(BAUDRATES); do printf " case $${baud}: baudrate = B$${baud}; break;"; done >> $@ + printf "\n" >> $@ + +clean: + $(RM) $(TARGET) src/config.h + diff --git a/README.md b/README.md index 15e96f0..b617561 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,16 @@ +`Origin__`: + + + + + +`ORG.FSMS`: + + + + + + # tio - a simple serial device I/O tool [](https://circleci.com/gh/tio/tio/tree/master) diff --git a/src/bash-completion/tio.in b/bash-completion/tio similarity index 100% rename from src/bash-completion/tio.in rename to bash-completion/tio diff --git a/images/tio-demo.gif b/images/tio-demo.gif new file mode 100644 index 0000000..ef4da5d Binary files /dev/null and b/images/tio-demo.gif differ diff --git a/man/tio.1.in b/man/man1/tio.1 similarity index 99% rename from man/tio.1.in rename to man/man1/tio.1 index e7b5357..5b1563f 100644 --- a/man/tio.1.in +++ b/man/man1/tio.1 @@ -1,4 +1,4 @@ -.TH "tio" "1" "@version_date@" "tio @version@" "User Commands" +.TH "tio" "1" "2022-07-13" "tio 1.45" "User Commands" .SH "NAME" tio \- a simple serial device I/O tool$ git gc --prune=now --aggressive $ git gc --prune=now --aggressive $ git gc --prune=now --aggressive $ git push origin --force --all $ git push origin --force --tags $ cd .. $ rm -frv tio $ git clone git@github.com:FS-make-simple/tio.git