]> repo.cephalix.eu Git - oss-pkg-tools.git/commitdiff
New script for testings.
authorbuildmaster <buildmaster@git.cephalix.eu>
Mon, 5 Nov 2018 16:24:41 +0000 (17:24 +0100)
committerbuildmaster <buildmaster@git.cephalix.eu>
Mon, 5 Nov 2018 16:24:41 +0000 (17:24 +0100)
build_packages.sh
build_packages_for_testing.sh [new file with mode: 0755]

index b6b21f238b50f096365e787ce6836c626cb4b7b4..75042ae2463eaf68b90880a601cf239009f086d7 100755 (executable)
@@ -1,7 +1,6 @@
 #!/bin/bash
 REPO=/srv/www/repo/salt-packages/
 PACKAGES=/root/SALT-PACKAGES
-rm -rf ${REPO}
 mkdir -p ${REPO}/noarch/
 HERE=$(pwd)
 for P in $(cat PACKAGES)
@@ -15,14 +14,10 @@ do
                cd ${PACKAGES}/${P}
                OUT=$( git pull )
        fi
-       if [ ! -e ${PACKAGES}/${P}/Makefile ]; then 
-               cp ${PACKAGES}/template/Makefile ${PACKAGES}/${P}
-       fi
        cd ${PACKAGES}/${P}
        make package REPO=$REPO
        cd ${HERE}
 done
 
-rpmsign --addsign ${REPO}/noarch/*rpm
 createrepo ${REPO}
-gpg -a --detach-sign ${REPO}/repodata/repomd.xml
+
diff --git a/build_packages_for_testing.sh b/build_packages_for_testing.sh
new file mode 100755 (executable)
index 0000000..37976d6
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/bash
+REPO=/srv/www/repo/TESTING/salt-packages/
+PACKAGES=/root/SALT-PACKAGES
+mkdir -p ${REPO}/noarch/
+HERE=$(pwd)
+for P in $(cat PACKAGES)
+do
+       echo "################################################"
+       echo "Processing package ${P}"
+       echo "################################################"
+       if [ ! -d ${PACKAGES}/${P} ]; then
+               git clone git@git.cephalix.eu:SALT-PACKAGES/${P}.git ${PACKAGES}/${P}
+       else
+               cd ${PACKAGES}/${P}
+               OUT=$( git pull )
+       fi
+       cd ${PACKAGES}/${P}
+       make package REPO=$REPO
+       cd ${HERE}
+done
+
+createrepo ${REPO}
+