2020-12-22 01:44:44 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
2020-12-29 21:21:17 +01:00
|
|
|
# This file is part of scripts.
|
|
|
|
|
|
|
|
# scripts 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 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
# scripts is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with scripts. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
# Original author: Maciej Barć (xgqt@protonmail.com)
|
2020-12-22 01:52:05 +01:00
|
|
|
# Copyright (c) 2020, src_prepare group
|
2020-12-29 21:21:17 +01:00
|
|
|
# Licensed under the GNU GPL v3 License
|
2020-12-22 01:52:05 +01:00
|
|
|
|
|
|
|
|
2020-12-22 01:44:44 +01:00
|
|
|
trap 'exit 128' INT
|
|
|
|
export PATH
|
|
|
|
|
|
|
|
|
|
|
|
main() {
|
|
|
|
[ -f Manifest ] && rm -v Manifest
|
|
|
|
repoman --verbose manifest
|
|
|
|
|
|
|
|
repoman --verbose -Idx full
|
2020-12-24 23:09:05 +01:00
|
|
|
pkgcheck --verbose scan
|
2020-12-22 01:44:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
case ${1}
|
|
|
|
in
|
|
|
|
-h | -help | --help )
|
|
|
|
echo "Usage: ${0}"
|
|
|
|
echo "Performed in this script:"
|
|
|
|
echo "1. remove Manifest file"
|
|
|
|
echo "2. regen Manifest with 'repoman manifest'"
|
|
|
|
echo "3. Check with 'repoman -Idx full'"
|
|
|
|
echo "4. Check with 'pkgcheck scan'"
|
|
|
|
;;
|
|
|
|
* )
|
|
|
|
main
|
|
|
|
;;
|
|
|
|
esac
|