From 4ef5bc5568d52e4ee151b1e0f7e10e840c9bc588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Thu, 10 May 2012 14:58:23 -0300 Subject: Create repo dir if it doesn't exists --- librestage | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/librestage b/librestage index d8eae19..b474bb1 100755 --- a/librestage +++ b/librestage @@ -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}" -- cgit v1.2.2 From 38c96cd82f5cab2599823a546269c184435c7656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Thu, 10 May 2012 14:58:40 -0300 Subject: Repackage every architecture in the arch array --- librerepkg | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/librerepkg b/librerepkg index c33a538..d506003 100755 --- a/librerepkg +++ b/librerepkg @@ -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} -- cgit v1.2.2 From 20aae24315eb580855ed698f4324d2460fa1f669 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Sat, 26 May 2012 15:35:07 +0200 Subject: Updating text showed by -h, changing the name of the last program to the current one --- libreaddiff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.2