diff options
author | Joshua I. Haase H. (xihh) <hahj87@gmail.com> | 2012-06-03 19:06:15 -0500 |
---|---|---|
committer | Joshua I. Haase H. (xihh) <hahj87@gmail.com> | 2012-06-03 19:06:15 -0500 |
commit | f39ca23301931899d1bf57dad1144983e1df9b8c (patch) | |
tree | 7abca41b54d7d1e9dccf4241f9ede2526893758e | |
parent | 3dcf773de928a0a587f0409d2bd1d7ecad80b549 (diff) | |
parent | 20aae24315eb580855ed698f4324d2460fa1f669 (diff) |
Merge branch 'master' of gitpar:libretools
-rwxr-xr-x | libreaddiff | 2 | ||||
-rwxr-xr-x | librerepkg | 7 | ||||
-rwxr-xr-x | librestage | 5 |
3 files changed, 11 insertions, 3 deletions
diff --git a/libreaddiff b/libreaddiff index c8b5214..98646a2 100755 --- a/libreaddiff +++ b/libreaddiff @@ -25,7 +25,7 @@ custom_config=$XDG_CONFIG_HOME/libretools/libretools.conf for arg in "$@" ; do case "$arg" in -h|--h|--he|--hel|--help|-\?) - echo 'Usage: find-pkgs.sh repo [arch] + echo 'Usage: libreaddiff repo [arch] This script outputs a diff of package names and versions in repo between pacman'\''s sync db and abslibre checkout.' >&2 @@ -51,17 +51,20 @@ makepkgflags=$@ tempdir=$(mktemp -d /tmp/$(basename $PWD).XXXXX) +msg "Copying files" +cp ./* ${tempdir}/ + for _arch in ${arch[@]}; do - export CARCH=${_arch} msg "Repackaging: $pkgname $pkgver-$pkgrel ($(date -u))" - cp ./* ${tempdir}/ stdnull pushd ${tempdir} msg2 "Updating md5sums" makepkg -gp rePKGBUILD >> rePKGBUILD + echo "export CARCH=${_arch}" >> rePKGBUILD + msg "Repackaging using makepkg" makepkg -Lcdp rePKGBUILD ${makepkgflags} @@ -99,6 +99,11 @@ for _arch in ${ARCHES[@]}; do canonical="" for _repo in ${repos[@]}; do + if [ ! -d "${WORKDIR}/staging/${_repo}" ]; then + warning "[${_repo}] didn't exist, creating..." + mkdir -p "${WORKDIR}/staging/${_repo}" + fi + if [ -z "$canonical" ]; then canonical="${WORKDIR}/staging/${_repo}/${pkgfile}" |