Skip to content

Commit

Permalink
release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thinrope committed Apr 16, 2024
1 parent 6c22280 commit 10b2298
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 23 deletions.
6 changes: 6 additions & 0 deletions RDEPEND.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

echo 'RDEPEND="';
grep -h -F '## GENTOO_DEP:' usr/ -R |perl -ne 's/^## GENTOO_DEP: (.+)$/$1/; print "\t>=$_"' \
|sort -u;
echo '"';
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# gentoo-nifty-scripts

Nifty scrips for Gentoo that go under /usr/local/{,s}bin
2 changes: 1 addition & 1 deletion usr/local/bin/FTKI_deuglify.pl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ =head1 DESCRIPTION
=head1 AUTHOR
Copyright (c) 2018 by Kalin KOZHUHAROV <kalin@thinrope.net>
Copyright (c) 2018-2024 by Kalin KOZHUHAROV <kalin@thinrope.net>
=head1 LICENSE
Expand Down
16 changes: 11 additions & 5 deletions usr/local/bin/jzip
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
#!/bin/bash
VERSION="0.1.2"
VERSION="0.1.3"

trap 'echo -ne "\n:::\n:::\tCaught signal, exiting at line $LINENO, while running :${BASH_COMMAND}:\n:::\n"; exit' SIGINT SIGQUIT

# jzip: Tool to extract Shift_JIS/CP932 (by default) archived zip files
#
# Copyright © 2017-2019 Kalin KOZHUHAROV <kalin@thinrope.net>
# Copyright © 2017-2024 Kalin KOZHUHAROV <kalin@thinrope.net>



# {{{ external dependencies
declare -A COMMANDS
## app-arch/p7zip-16.02-r4

## GENTOO_DEP: app-arch/p7zip-17.05-r1
COMMANDS[7z]="/usr/bin/7z"

## sys-libs/glibc-2.27-r6
## GENTOO_DEP: sys-libs/glibc-2.38-r11
COMMANDS[iconv]="/usr/bin/iconv"
## app-text/convmv-2.04

## GENTOO_DEP: app-text/convmv-2.05-r1
COMMANDS[convmv]="/usr/bin/convmv"

# external dependencies }}}

NUMBER_OF_ARGUMENTS=2
Expand Down Expand Up @@ -127,3 +130,6 @@ fi
# introduce COMMANDS array
# 2019-02-22 0.1.2 fix a bug in argument handling
# handle filenames with spaces (use `mv` instead of `cp *`)
# 2024-04-15 0.1.3 use GENTOO_DEP

# vim: foldmethod=marker
15 changes: 10 additions & 5 deletions usr/local/sbin/device_confirm_blank.sh
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
#!/bin/bash
VERSION="0.0.13"
VERSION="0.1.0"

trap 'echo -ne "\n:::\n:::\tCaught signal, exiting at line $LINENO, while running :${BASH_COMMAND}:\n:::\n"; exit' SIGINT SIGQUIT

# device_confirm_blank.sh: Tool to make sure a block device is blank / empty
#
# Copyright © 2015-2023 Kalin KOZHUHAROV <kalin@thinrope.net>
# Copyright © 2015-2024 Kalin KOZHUHAROV <kalin@thinrope.net>


NUMBER_OF_ARGUMENTS=1
DEVICE_TO_CHECK=$1

# {{{ external dependencies
declare -A COMMANDS
## sys-apps/util-linux-2.38.1

## GENTOO_DEP: sys-apps/util-linux-2.39.3-r7
COMMANDS[blockdev]="/sbin/blockdev"

## sys-apps/coreutils-9.1-r2
## GENTOO_DEP: sys-apps/coreutils-9.4-r1
COMMANDS[shuf]="/usr/bin/shuf"
COMMANDS[dd]="/bin/dd"
COMMANDS[md5sum]="/usr/bin/md5sum"
COMMANDS[numfmt]="/usr/bin/numfmt"
## sys-devel/bc-1.07.1-r6

## GENTOO_DEP: sys-devel/bc-1.07.1-r6
COMMANDS[bc]="/usr/bin/bc"

# external dependencies }}}
# {{{ standard error checking
function usage()
Expand Down Expand Up @@ -136,5 +139,7 @@ exit 0
# -------------------------------------------------------------------------------------------------
# 2017-11-27 0.0.12 refactor to include Changes and better UI
# 2023-04-17 0.0.13 refactor comments, update package versions
# 2024-04-15 0.1.0 use GENTOO_DEP
#

# vim: foldmethod=marker
9 changes: 6 additions & 3 deletions usr/local/sbin/device_make_blank.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
#!/bin/bash
VERSION="0.0.1"
VERSION="0.0.2"

trap 'echo -ne "\n:::\n:::\tCaught signal, exiting at line $LINENO, while running :${BASH_COMMAND}:\n:::\n"; exit' SIGINT SIGQUIT

# device_make_blank.sh: Tool to wipe a block device by writing from /dev/zero to it
#
# Copyright © 2023 Kalin KOZHUHAROV <kalin@thinrope.net>
# Copyright © 2023-2024 Kalin KOZHUHAROV <kalin@thinrope.net>


NUMBER_OF_ARGUMENTS=1
DEVICE_TO_WIPE=$1

# {{{ external dependencies
declare -A COMMANDS
## sys-apps/pv-1.6.20

## GENTOO_DEP: sys-apps/pv-1.8.5
COMMANDS[pv]="/usr/bin/pv"

# external dependencies }}}
# {{{ standard error checking
function usage()
Expand Down Expand Up @@ -64,6 +66,7 @@ exit 0
# YYYY-mm-dd ver Changes
# -------------------------------------------------------------------------------------------------
# 2023-04-17 0.0.1 Initial commit
# 2024-04-15 0.0.2 use GENTOO_DEP
#

# vim: foldmethod=marker
23 changes: 14 additions & 9 deletions usr/local/sbin/update-gentoo.sh
Original file line number Diff line number Diff line change
@@ -1,40 +1,41 @@
#!/bin/bash
VERSION="1.0.8"
VERSION="1.0.9"

trap 'echo -ne "\n:::\n:::\tCaught signal, exiting at line $LINENO, while running :${BASH_COMMAND}:\n:::\n"; exit' SIGINT SIGQUIT

# update-gentoo.sh: Script to update all possible things in Gentoo box
#
# Copyright © 2012-2017 Kalin KOZHUHAROV <kalin@thinrope.net>
# Copyright © 2012-2024 Kalin KOZHUHAROV <kalin@thinrope.net>


NUMBER_OF_ARGUMENTS=0

# {{{ external dependencies
declare -A COMMANDS
## app-portage/eix-0.32.9

## GENTOO_DEP: app-portage/eix-0.36.7
COMMANDS[eix-sync]="/usr/bin/eix-sync"

## app-admin/perl-cleaner-2.25
## GENTOO_DEP: app-admin/perl-cleaner-2.31
COMMANDS[perl-cleaner]="/usr/sbin/perl-cleaner"

## sys-apps/portage-2.3.13-r1
## sys-apps/portage-3.0.61-r1
COMMANDS[emerge]="/usr/bin/emerge"
COMMANDS[emaint]="/usr/sbin/emaint"

## app-portage/gentoolkit-0.4.0
## app-portage/gentoolkit-0.6.5
COMMANDS[revdep-rebuild]="/usr/bin/revdep-rebuild"
COMMANDS[eclean]="/usr/bin/eclean"
# external dependencies }}}

NUMBER_OF_ARGUMENTS=0
# external dependencies }}}
# {{{ standard error checking
function usage()
{
echo -ne "\n"
echo -ne "==================== $0-${VERSION} ====================\n"
echo -ne "Usage: $0\n"
}

# {{{ standard error checking
if [ "$#" -ne ${NUMBER_OF_ARGUMENTS} ]
then
echo "$0: Illegal number of parameters: $# (should have been ${NUMBER_OF_ARGUMENTS}) !!!"
Expand Down Expand Up @@ -84,3 +85,7 @@ ${COMMANDS[eclean]} --destructive distfiles --fetch-restricted
# add COMMANDS dependencies and usage()
# 2017-11-27 1.0.7 refactor to unify Changes
# 2021-06-28 1.0.8 remove demerge (deprecated)
# 2024-04-15 1.0.9 use GENTOO_DEP
#

# vim: foldmethod=marker

0 comments on commit 10b2298

Please sign in to comment.