aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-repositories
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-04-03 00:24:49 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-04-03 00:24:49 +0300
commit9606644a0beb4f2883e1e0f4c6c81b42ab40b3a1 (patch)
tree5f16ff3c7506b653862e0171d71163074f67c96e /bin/ak-repositories
parentfe1fb88889b2c3949383c254f3058da24ba5e3f2 (diff)
downloadarching-kaos-tools-9606644a0beb4f2883e1e0f4c6c81b42ab40b3a1.tar.gz
arching-kaos-tools-9606644a0beb4f2883e1e0f4c6c81b42ab40b3a1.tar.bz2
arching-kaos-tools-9606644a0beb4f2883e1e0f4c6c81b42ab40b3a1.zip
Renaming to prefix convention, introduced ipfs wrappers so it can be easier to maintain, changes in filesplitter and filejoiner as they move sm submodule namespace... like there are namespaces in bash or something
Diffstat (limited to 'bin/ak-repositories')
-rwxr-xr-xbin/ak-repositories26
1 files changed, 13 insertions, 13 deletions
diff --git a/bin/ak-repositories b/bin/ak-repositories
index 3cd415f..7d3bf5a 100755
--- a/bin/ak-repositories
+++ b/bin/ak-repositories
@@ -18,9 +18,9 @@ import(){
then
cd $PROJECT.git
git repack -a
- IPFS="$(ipfs add -Qr .)"
- ipfs key gen "$PROJECT.git"
- ipfs name publish --key="$PROJECT.git" /ipfs/$IPFS
+ IPFS="$(ak-ipfs-add .)"
+ ak-ipfs-key-gen "$PROJECT.git"
+ ak-ipfs-name-publish --key="$PROJECT.git" /ipfs/$IPFS
cd $HOME/bare
else
echo "$PROJECT not a git repo"
@@ -40,8 +40,8 @@ update(){
cd $BARE
git pull
git repack -a
- IPFS="$(ipfs add -Qr .)"
- ipfs name publish --key="$BARENAME" /ipfs/$IPFS
+ IPFS="$(ak-ipfs-add .)"
+ ak-ipfs-name-publish --key="$BARENAME" /ipfs/$IPFS
echo "DONE"
else
echo "NO BARE TO UPDATE"
@@ -55,8 +55,8 @@ update(){
cd "$PROJECT"
git pull
git repack -a
- IPFS="$(ipfs add -Qr .)"
- ipfs name publish --key="$PROJECT" /ipfs/$IPFS
+ IPFS="$(ak-ipfs-add .)"
+ ak-ipfs-name-publish --key="$PROJECT" /ipfs/$IPFS
cd $BAREDIR
done
fi
@@ -101,18 +101,18 @@ add(){
then
cd $BAREGITDIR
git repack -a
- IPFS="$(ipfs add -Qr .)"
- try=ipfs key gen "$PROJECT.git"
+ IPFS="$(ak-ipfs-add .)"
+ try=ak-ipfs-key-gen "$PROJECT.git"
if [ $? == 0 ]
then
- ipfs name publish --key="$PROJECT.git" /ipfs/$IPFS
+ ak-ipfs-name-publish --key="$PROJECT.git" /ipfs/$IPFS
cat > data <<EOF
{
"project":"$PROJECT.git",
"ipns":"$try"
}
EOF
- pack_z_block "repos/add" data
+ ak-pack_z_block "repos/add" data
echo "Done"
fi
fi
@@ -122,10 +122,10 @@ EOF
}
index(){
- ipfs key list -l | grep -e '\.git'
+ ak-ipfs-key-list-full | grep -e '\.git'
}
set-as-profile(){
- IPFS=$(ipfs add -q $REPOSTORE)
+ IPFS=$(ak-ipfs-add $REPOSTORE)
if [ $? == 0 ]
then
profile set repositories $IPFS