Kaydet (Commit) e8ed3024 authored tarafından Ali Rıza Keskin's avatar Ali Rıza Keskin

sulinstrapt eklendi

üst 4088b928
......@@ -8,4 +8,5 @@ build:
python3 setup.py build
install:
python3 setup.py install
install inary-cli /usr/bin/inary
ln -s /usr/bin/inary-cli /usr/bin/inary || true
install shell-complete/bash-complete.sh /usr/share/bash-completion/completions/inary
......@@ -393,6 +393,7 @@ def mvprintw(x,y,msg=''):
printw(msg)
def noecho(enabled=True):
if(ctx.get_option('no_color')==False):
if(enabled):
printw("\x1b[?25l")
else:
......
#!/bin/sh
#sulinstrapt betiği ile sulinos chroot oluşturabilirsiniz veya diskinize kurulum yapabilirsiniz
if [ "$1" == "" ] || [ "$1" == "-*" ]
then
echo "Usage: sulinstrapt [directory]"
exit 0
fi
sulin="$1"
if [ $UID -ne 0 ]
then
echo "You must be root!"
exit 1
fi
if [ -d "$sulin" ]
then
echo "$sulin already exist"
fi
if [ -f "$sulin" ]
then
echo "$sulin is a file. You must delete or move."
exit 1
fi
inary ar sulin https://master.dl.sourceforge.net/project/sulinos/SulinRepository/inary-index.xml -D$sulin
inary it -c system.base -y --ignore-scom -D$sulin
cp -prf $sulin/usr/share/baselayout/* $sulin/etc/
#!/bin/bash
if [ $UID -ne 0 ] ; then
echo "You must be root!"
exit 1
fi
inary dc
inary ur
echo
echo "Listing avaiable..."
inary la --no-color | awk -F ' ' '{print $1}' > /var/cache/inary/avaiable
echo "Listing installed..."
inary li --no-color | awk -F ' ' '{print $1}' > /var/cache/inary/installed
echo "Listing repos..."
ls /var/lib/inary/index/ > /var/cache/inary/repos
echo
echo "Done"
......@@ -205,6 +205,8 @@ setup(name="inary",
scripts=['inary-cli',
'scripts/pspec2po',
'scripts/revdep-rebuild',
'scripts/sulinstrapt',
'scripts/update-inary-cache',
'scripts/version-bump'],
classifiers=[
'Development Status :: 5 - Production/Stable',
......
_inary()
{
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
opts="ar bl bi check cm cp dc dt dr em emup er fc graph hs ix info it la lc li ln ln lp lr lu rdb rp ro rr sr sf ur up"
if [[ ${cur} == * ]] && [ ${prev} == inary ] ; then
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
fi
if [[ ${cur} == * ]] && [ ${prev} == it ] ; then
avaiable=$(cat /var/cache/inary/avaiable)
COMPREPLY=( $(compgen -W "${avaiable}" -- ${cur}) )
fi
if [[ ${cur} == * ]] && [ ${prev} == rm ] ; then
avaiable=$(cat /var/cache/inary/installed)
COMPREPLY=( $(compgen -W "${avaiable}" -- ${cur}) )
fi
if [[ ${cur} == * ]] && [ ${prev} == rr ] ; then
avaiable=$(cat /var/cache/inary/repos)
COMPREPLY=( $(compgen -W "${avaiable}" -- ${cur}) )
fi
}
complete -F _inary inary
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment