diff options
author | cezarmathe | 2018-12-12 18:47:49 +0200 |
---|---|---|
committer | cezarmathe | 2018-12-12 18:47:49 +0200 |
commit | bfd4c976e5026ee1b25e98012c0cfdb3949fb2e2 (patch) | |
tree | a961762240ece66c0d655b500a85d10bfe3dbfc9 /pacman_entries.sh | |
download | aur-bfd4c976e5026ee1b25e98012c0cfdb3949fb2e2.tar.gz |
First repotools release.
Diffstat (limited to 'pacman_entries.sh')
-rw-r--r-- | pacman_entries.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pacman_entries.sh b/pacman_entries.sh new file mode 100644 index 000000000000..b4e84f448e4f --- /dev/null +++ b/pacman_entries.sh @@ -0,0 +1,18 @@ +# Functions for generating pacman entries for repositories + +function generate_pacman_entry() { + local repository_name="$1"; shift + + if [[ ! -z "${repository_name}" ]]; then + # generate the entry for a single package + echo "[${LOCAL_REPOSITORY_NAME}]" + echo "SigLevel = Optional TrustAll" + echo "Server = ${LOCAL_REMOTE_PACKAGE_DIR}/" + echo + else + # generate the entry for all packages + for reponame in "${PATH_REPOSITORIES}/*"; do + bash repotools -G "$(basename ${reponame})" + done + fi +}
\ No newline at end of file |