summaryrefslogtreecommitdiff
path: root/repo/test.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-06 21:25:48 +0000
committerdavidovski <david@davidovski.xyz>2022-06-06 21:25:48 +0000
commitccc722b7ed330198d82a3cf28ead76d6d107a70a (patch)
tree7611b3cc4f3ca681524fa28b174a0253eb802e0e /repo/test.sh
parent9ee32689f0b57b9e1de6d22c84ce8e3700b6122b (diff)
added java
Diffstat (limited to 'repo/test.sh')
-rw-r--r--repo/test.sh46
1 files changed, 0 insertions, 46 deletions
diff --git a/repo/test.sh b/repo/test.sh
deleted file mode 100644
index a531f72..0000000
--- a/repo/test.sh
+++ /dev/null
@@ -1,46 +0,0 @@
-for xipkg in $(find /var/lib/xib/repo -name '*.xipkg'); do
- name=$(basename $xipkg .xipkg)
- buildfile=$(realpath $(find -name "$name.xibuild" | tail -1))
- info_file=$xipkg.info
- echo $name $buildfile
-
- . $buildfile
-
- pkg_ver=$PKG_VER
- [ -z "$pkg_ver" ] && pkg_ver=$BRANCH
- [ -z "$pkg_ver" ] && pkg_ver="latest"
-
- {
- echo "# XiPKG info file version $XIPKG_INFO_VERSION"
- echo "# automatically generated from the built packages"
- echo "NAME=$name"
- echo "DESCRIPTION=$DESC"
- echo "PKG_FILE=$name.xipkg"
- echo "CHECKSUM=$(sha512sum $xipkg | awk '{ print $1 }')"
- echo "VERSION=$pkg_ver"
- echo "REVISION=$(cat ${buildfile%/*}/*.xibuild | sha512sum | cut -d' ' -f1)"
- echo "SOURCE=$SOURCE"
- echo "DATE=$(stat -t $xipkg | cut -d' ' -f13 | xargs date -d)"
- echo "DEPS=${DEPS}"
- echo "MAKE_DEPS=${MAKE_DEPS}"
- echo "ORIGIN=$NAME"
- } > $info_file
-
-
-
-done
-
-#for repo in $(ls); do
-# for package in $(ls $repo); do
-# [ -f "/var/lib/xib/repo/$repo/$package.xipkg.info" ] && {
-# [ -f "/var/lib/xib/repo/$repo/$package.xipkg" ] && {
-# sed -rni 's/^REVISION=.*$//' /var/lib/xib/repo/$repo/$package.xipkg.info
-# echo "$package";
-# printf "REVISION=%s" $(cat $repo/$package/*.xibuild | sha512sum | cut -d" " -f1) >> /var/lib/xib/repo/$repo/$package.xipkg.info;
-# true
-# } || {
-# rm /var/lib/xib/repo/$repo/$package.xipkg.info
-# }
-# }
-# done;
-#done