-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dirs [ source, package ], and file [ README.md ]
- Loading branch information
0 parents
commit e9a9639
Showing
28 changed files
with
4,105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# vimizer | ||
|
||
### For the GNU/Linux system | ||
|
||
The **vimizer** program allows to install, change the shell and configure | ||
the `vim` and `zsh` programs on your Linux system (Use from the terminal) . | ||
|
||
|
||
After installing the **vimizer** program, you can execute (from the terminal) | ||
the command **vimizer --help** or **man vimizer** to get more information | ||
about the **vimizer** program . | ||
|
||
**Note** : Except the options `[ --version, --help ]` , no input parameter | ||
is required to use this program . | ||
|
||
|
||
**Hash-package** : **md5sum(52bade9b7e603e8ba35f52c5d48b8822)** | ||
<br /> | ||
**Codename** : **sira** | ||
|
||
<br /> | ||
|
||
--- | ||
#### *Info* | ||
For any request, write to me via this email address : | ||
[[email protected]](mailto:[email protected]) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
#!/usr/bin/bash | ||
|
||
|
||
### | ||
# Installer `vimizer` dependencies | ||
### | ||
|
||
set -uo pipefail | ||
|
||
|
||
|
||
: ' | ||
@overview A function allowing to install dependencies | ||
' | ||
function installer | ||
{ | ||
|
||
# Declaration variables | ||
local counter=0 | ||
|
||
|
||
|
||
# Install `debianutils` if the package does not exist | ||
if [[ ! ` dpkg-query -l debianutils ` ]] | ||
then | ||
# Update | ||
apt-get update | ||
|
||
# Installing | ||
apt-get install debianutils --assume-yes | ||
|
||
# | ||
counter=$(( counter + 1 )) | ||
fi | ||
|
||
|
||
# Install `grep` if the package does not exist | ||
if [[ ! ` which grep ` ]] | ||
then | ||
|
||
# | ||
if [[ $counter -eq 0 ]] | ||
then | ||
# Update | ||
apt-get update | ||
|
||
# | ||
counter=$(( counter + 1 )) | ||
fi | ||
|
||
# installing | ||
apt-get install grep --assume-yes | ||
fi | ||
|
||
|
||
|
||
### Action to install dependencies -> start tag[i0] | ||
|
||
# Declaration variables | ||
declare -a tabDep=( "bash" "zsh" "coreutils" "systemd" "software-properties-common" "gawk" \ | ||
"awk" "vim-gtk3" "nodejs" "zsh-autosuggestions" "zsh-syntax-highlighting" "npm" "git" "p7zip-full" ) | ||
|
||
|
||
# Installing dependencies | ||
for pkg in ${tabDep[@]} | ||
do | ||
# | ||
if [[ $counter -eq 0 ]] | ||
then | ||
# | ||
apt-get update | ||
|
||
# | ||
counter=$(( counter + 1 )) | ||
fi | ||
|
||
|
||
# | ||
if [[ "$pkg" != "coreutils" ]] && [[ "$pkg" != "util-linux" ]] && [[ "$pkg" != "software-properties-common" ]] \ | ||
&& [[ "$pkg" != "zsh-autosuggestions" ]] && [[ "$pkg" != "vim-gtk3" ]] && [[ "$pkg" != "p7zip-full" ]] \ | ||
&& [[ "$pkg" != "zsh-syntax-highlighting" ]] | ||
|
||
then | ||
# | ||
if [[ ! ` which $pkg ` ]] | ||
then | ||
# | ||
apt-get install "$pkg" --assume-yes | ||
fi | ||
else | ||
if [[ ! ( ` dpkg-query -l "$pkg" | grep -w -- "^ii" ` ) ]] | ||
then | ||
# | ||
apt-get install "$pkg" --assume-yes | ||
fi | ||
fi | ||
done | ||
|
||
### Action to install dependencies -> end tag[i0] | ||
} | ||
|
||
# Call the function | ||
installer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
package: vimizer , | ||
version: 1.0.4 , | ||
pkg-md5sum: 52bade9b7e603e8ba35f52c5d48b8822 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* The <<vimizer>> program allows to install, change the shell and configure the | ||
* vim and zsh program on your Linux system(Use from the terminal) . | ||
* | ||
* After installing the <<vimizer>> program, you can execute (from the terminal) the | ||
* command `vimizer --help` or `man vimizer` to get more information | ||
* about the <<vimizer>> program . | ||
* | ||
* Note : Except the options[ --version, --help ] , no input parameter is required to use this program . | ||
* | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Package: vimizer | ||
Version: 1.0.4 | ||
Section: base | ||
Priority: optional | ||
Architecture: all | ||
Maintainer: Baldé <[email protected]> | ||
Depends: bash , zsh, coreutils , systemd , software-properties-common , gawk, awk, vim-gtk3, nodejs, zsh-autosuggestions, zsh-syntax-highlighting, npm, git, p7zip-full | ||
Description: <vimizer> program allows to install and configure the vim and zsh program on your Linux system (Use from the terminal) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/bash | ||
|
||
##### | ||
# postinst script | ||
#### | ||
|
||
set -uo pipefail | ||
|
||
|
||
# Just to print the name of the author | ||
echo "" | ||
echo "" | ||
echo "~" | ||
|
||
tput setaf 6; tput bold; echo "By Baldé ~" `tput sgr0` 2> /dev/null | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/bash | ||
|
||
##### | ||
# postrm script | ||
#### | ||
|
||
set -uo pipefail | ||
|
||
# Declaration variables | ||
meoListInstalledPkgsPure="/usr/lib/meo/library/info/list-installed-packages-pure" | ||
|
||
if [[ -e "$meoListInstalledPkgsPure" ]] | ||
then | ||
# | ||
sed -i "/vimizer/d" "$meoListInstalledPkgsPure" 2> /dev/null | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/usr/bin/bash | ||
|
||
# | ||
set -uo pipefail | ||
|
||
|
||
##### | ||
# Action before deploying the program | ||
##### | ||
|
||
|
||
# Declaration variables | ||
getOS="" | ||
|
||
|
||
|
||
### Action on the directory `/tmp` and others -> start tag[v0] | ||
|
||
if [[ ! ( -e "/tmp" ) ]] | ||
then | ||
|
||
mkdir -p /tmp 2> /dev/null | ||
chmod 777 /tmp 2> /dev/null | ||
|
||
# Check the value of return of the last command | ||
if [[ $? -ne 0 ]] | ||
then | ||
echo "~" | ||
echo "This program is not compatible with your system ." | ||
exit 1 | ||
fi | ||
|
||
# Get kernel | ||
getOS=` uname --operating-system ` | ||
|
||
# | ||
if [[ $getOS != "GNU/Linux" ]] | ||
then | ||
echo "~" | ||
echo "This program is not compatible with your system ." | ||
exit 1 | ||
fi | ||
|
||
fi | ||
|
||
### Action on the directory `/tmp` and others -> end tag[v0] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/bash | ||
|
||
##### | ||
# prerm script | ||
#### | ||
|
||
set -uo pipefail | ||
|
||
# Declaration variables | ||
meoListInstalledPkgsPure="/usr/lib/meo/library/info/list-installed-packages-pure" | ||
|
||
if [[ -e "$meoListInstalledPkgsPure" ]] | ||
then | ||
# | ||
sed -i "/vimizer/d" "$meoListInstalledPkgsPure" 2> /dev/null | ||
fi | ||
|
Oops, something went wrong.