aboutsummaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-06-04 18:07:39 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-06-04 18:07:39 +0300
commit0d1777251dea7d35cd774518959b4377673e1cab (patch)
treeb3d7a15725641c9e3d1d7b45150135e1f8ce9a71 /update.sh
parent684dd3e038ae90f0fd1f53211ce4d30141e35bf2 (diff)
downloadarching-kaos-tools-0d1777251dea7d35cd774518959b4377673e1cab.tar.gz
arching-kaos-tools-0d1777251dea7d35cd774518959b4377673e1cab.tar.bz2
arching-kaos-tools-0d1777251dea7d35cd774518959b4377673e1cab.zip
Refactoring, modules directory introduced
- All modules are now stored separately from the rest of the bin/ - You can run them now with `ak -m <module> <args>` - Files affected: * bin/ak-articles -> modules/ak-articles * bin/ak-categories -> modules/ak-categories * bin/ak-comments -> modules/ak-comments * bin/ak-files -> modules/ak-files * bin/ak-folders -> modules/ak-folders * bin/ak-mixtapes -> modules/ak-mixtapes * bin/ak-news -> modules/ak-news * bin/ak-reference -> modules/ak-reference * bin/ak-repositories -> modules/ak-repositories * bin/ak-roadmap -> modules/ak-roadmap * bin/ak-todos -> modules/ak-todos
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/update.sh b/update.sh
index 31e49d1..db47d8b 100755
--- a/update.sh
+++ b/update.sh
@@ -40,3 +40,14 @@ do
ln -s $(pwd)/lib/$l $AK_LIBDIR/$l
fi
done
+
+# Find modules and create symlinks
+modfiles=$(ls -1 $(pwd)/modules)
+for m in $modfiles
+do
+ if [ ! -L $AK_MODULESDIR/$m ]
+ then
+ echo "Non existing link: $(basename $m) creating..."
+ ln -s $(pwd)/modules/$m $AK_MODULESDIR/$m
+ fi
+done