Commit 3e5c9f22 authored by PoroCYon's avatar PoroCYon
Browse files

.sspt file, bootstrap is being worked on

parent 478491a0
sspt_pull() {
git pull
}
sspt_version() {
git rev-parse HEAD
}
sspt_prettyver() {
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
sspt_config() {
true
}
sspt_build() {
true
}
sspt_install() {
local instdir="$XDG_CONFIG_HOME"
if [ -z "$instdir" ]; then
instdir="$HOME/.config"
fi
install -D -t "$instdir/bin/" "local/bin/sspt"
install -D -t "$instdir/libexec/" \
local/libexec/sspt/sspt-{autogen,bin-cb,build,clean,clean-config,configure,edit,install,list,orphanize,pkgcmd,pull,purge,src-db,strace,uninstall,update}
}
sspt_clean() {
true
}
sspt_clean_config() {
true
}
sspt_pull() {
git pull
}
sspt_version() {
git rev-parse HEAD
}
sspt_prettyver() {
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
export SSPT_SUB_DIR="/home/poro/src/sspt/local/libexec/sspt"
......@@ -162,11 +162,11 @@ parse_arg() {
# SSPT_DEST_DIR controls e.g. the PREFIX variable in makefile builds.
# NOTE: This variable is used when configuring packages. If you change
# this, it will not have any effect unless you reconfigure all packages.
export SSPT_DEST_DIR="\$XDG_CONFIG_HOME"
export SSPT_DEST_DIR="\$HOME/.local"
# This directory contains all the subcommand scripts.
export SSPT_SUB_DIR="\$XDG_CONFIG_HOME/libexec/sspt"
export SSPT_SUB_DIR="\$HOME/.local/libexec/sspt"
# This directory contains all the database files.
export SSPT_DB_DIR="\$XDG_CONFIG_HOME/share/sspt"
export SSPT_DB_DIR="\$HOME/.local/share/sspt"
# This is where sspt stores the source code of all pacakges.
# You might want to change this.
export SSPT_DL_DIR="\$HOME/src/sspt"
......
#!/usr/bin/env bash
function edit_the_conf() {
local cfgfile="$XDG_CONFIG_HOME"
if [ -z "$cfgfile" ]; then
cfgfile="$HOME/.config"
fi
cfgfile="$cfgfile/sspt.conf"
cfgfile="$XDG_CONFIG_HOME"
if [ -z "$cfgfile" ]; then
cfgfile="$HOME/.config"
fi
cfgfile="$cfgfile/sspt.conf"
function edit_the_conf() {
local edit_conf=
read -e -p "Edit the sspt.conf file? (Y/n) " $edit_conf
if [ "$edit_conf" != "n" ] && [ "$edit_conf" != "N" ]; then
......@@ -20,6 +20,8 @@ function edit_the_conf() {
local/bin/sspt --mk-default-config
edit_the_conf
local/bin/sspt pull "https://gitlab.com/PoroCYon/sspt"
local/bin/sspt install "sspt"
source "$cfgfile"
local/bin/sspt -c config/sspt.bootstrap.conf pull "https://gitlab.com/PoroCYon/sspt"
source "$cfgfile"
local/bin/sspt -c config/sspt.bootstrap.conf install "sspt"
Supports Markdown
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