aboutsummaryrefslogtreecommitdiff
path: root/trunk/utils/repos
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-10-07 19:32:06 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-10-07 19:32:06 -0300
commit0d6bcb2b7d08e3a41481372c1ae0d11868d88b1b (patch)
treed4429ce3a62e9cb5d095ad567b5f821d99a7b9f5 /trunk/utils/repos
parent5bfb15bdbedbc7273a283d611c84ed1cf401011b (diff)
downloadsimplepkg-0d6bcb2b7d08e3a41481372c1ae0d11868d88b1b.tar.gz
simplepkg-0d6bcb2b7d08e3a41481372c1ae0d11868d88b1b.tar.bz2
New repo layout with git migration
Diffstat (limited to 'trunk/utils/repos')
-rwxr-xr-xtrunk/utils/repos87
1 files changed, 0 insertions, 87 deletions
diff --git a/trunk/utils/repos b/trunk/utils/repos
deleted file mode 100755
index 57ecdff..0000000
--- a/trunk/utils/repos
+++ /dev/null
@@ -1,87 +0,0 @@
-#!/bin/bash
-#
-# repos script got from
-# http://software.jaos.org/BUILD/slapt-get/FAQ.html#slgFAQ17
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# any later version.
-#
-# Changes by rhatto at riseup.net to fit http://slack.sarava.org needs
-#
-
-BASENAME="`basename $0`"
-REPOS_CONF="/etc/simplepkg/repos.conf"
-COMMON="/usr/libexec/simplepkg/common.sh"
-
-if [ -f "$COMMON" ]; then
- source $COMMON
-else
- echo "error: file $COMMON found, check your $BASENAME installation"
- exit 1
-fi
-
-function usage {
-
- echo "`basename $0` [pkg [file]|all|new|svnmeta|PACKAGESTXT|FILELIST|MD5]"
-
-}
-
-function do_all {
-
- for pkg in `find . -type f $(pkg_ext_find) -print`; do
- gen_meta $pkg
- done
- $0 PACKAGESTXT
- $0 FILELIST
- $0 MD5
-
-}
-
-# ---------------------------------
-# main
-# ---------------------------------
-
-case "$1" in
- pkg)
- if [ -n "$2" ]; then
- gen_meta $2
- else
- usage
- fi
- ;;
- all)
- do_all
- ;;
- new)
- for pkg in `find . -type f $(pkg_ext_find) -print`; do
- if [ ! -f $(strip_pkg_ext $pkg).meta ]; then
- gen_meta $pkg
- fi
- done
- ;;
- svnmeta)
- svn_add_meta
- ;;
- PACKAGESTXT)
- gen_packages_txt .
- gen_packages_txt patches
- ;;
- FILELIST)
- gen_filelist
- gen_patches_filelist patches
- ;;
- MD5)
- gen_md5_checksums .
- gen_md5_checksums patches
- ;;
- usage)
- usage
- ;;
- *)
- do_all
- svn_add_meta
- ;;
-esac
-