changeset 279: |
91b552d64438 |
parent 278: |
b37de13ac9b7 |
child 280: |
98c3d10d16df |
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Mon, 17 Jun 2024 01:59:21 +0000 |
files: |
scripts/bundle-comp.sh scripts/bundle-packy.sh skelfile |
description: |
bundle updates |
1.1--- a/scripts/bundle-comp.sh Sun Jun 16 21:17:26 2024 -0400
1.2+++ b/scripts/bundle-comp.sh Mon Jun 17 01:59:21 2024 +0000
1.3@@ -10,7 +10,7 @@
1.4
1.5 rm -rf $OUT/*
1.6 mkdir -pv $OUT
1.7-mkdir -pv $WD/vc/hg/{zst,stream}
1.8+mkdir -pv $WD/src/hg/{zst,stream}
1.9
1.10 cd $SRC_PATH
1.11 # Find all mercurial repositories, create bundles and dump them to $OUT dir.
1.12@@ -19,17 +19,17 @@
1.13 echo "found hg repo: $i"
1.14 cd $i/..
1.15 echo "making zstd-v2 bundle..."
1.16- hg bundle -a -t zstd-v2 $WD/vc/hg/zst/$(basename $(hg root)).hg.zst
1.17+ hg bundle -a -t zstd-v2 $WD/src/hg/zst/$(basename $(hg root)).hg.zst
1.18 echo "making none-v2 bundle..."
1.19- hg bundle -a -t none-v2 $WD/vc/hg/$(basename $(hg root)).hg
1.20+ hg bundle -a -t none-v2 $WD/src/hg/$(basename $(hg root)).hg
1.21 echo "making stream bundle..."
1.22- hg debugcreatestreamclonebundle $WD/vc/hg/stream/$(basename $(hg root)).hg.stream
1.23+ hg debugcreatestreamclonebundle $WD/src/hg/stream/$(basename $(hg root)).hg.stream
1.24 echo "... Done."
1.25 cd $SRC_PATH
1.26 done
1.27
1.28 # archive all *.hg bundles, final compression with zst
1.29-cd $WD/vc && tar -I 'zstd' -cf $OUT/$BUNDLE.tar.zst --exclude hg/hg.hg hg/*.hg
1.30-# tar -cf $OUT/$BUNDLE.tar.stream vc/stream/*.hg.stream
1.31-# tar -cf $OUT/$BUNDLE.tar vc/*.hg
1.32+cd $WD/src && tar -I 'zstd' -cf $OUT/$BUNDLE.tar.zst --exclude hg/hg.hg hg/*.hg
1.33+# tar -cf $OUT/$BUNDLE.tar.stream src/stream/*.hg.stream
1.34+# tar -cf $OUT/$BUNDLE.tar src/*.hg
1.35 echo "Done."
2.1--- a/scripts/bundle-packy.sh Sun Jun 16 21:17:26 2024 -0400
2.2+++ b/scripts/bundle-packy.sh Mon Jun 17 01:59:21 2024 +0000
2.3@@ -9,7 +9,7 @@
2.4 echo "Bundling $BUNDLE_NAME in $OUT..."
2.5
2.6 mkdir -pv $OUT
2.7-mkdir -pv $WD/vc/{git,hg}
2.8+mkdir -pv $WD/src/packy
2.9
2.10 cd $SRC_PATH
2.11 # Find all git repositories, create bundles and dump them to $OUT dir.
2.12@@ -18,7 +18,7 @@
2.13 echo "found git repo: $i"
2.14 cd $i/..
2.15 echo "making git bundle..."
2.16- git bundle create $WD/vc/git/$(basename $(realpath .)).git --all
2.17+ git bundle create $WD/src/packy/$(basename $(realpath .)).git --all
2.18 echo "... Done."
2.19 cd $SRC_PATH
2.20 done
2.21@@ -28,11 +28,11 @@
2.22 echo "found hg repo: $i"
2.23 cd $i/..
2.24 echo "making none-v2 bundle..."
2.25- hg bundle -a -t none-v2 $WD/vc/hg/$(basename $(hg root)).hg
2.26+ hg bundle -a -t none-v2 $WD/src/packy/$(basename $(hg root)).hg
2.27 echo "... Done."
2.28 cd $SRC_PATH
2.29 done
2.30
2.31 # archive all *.git bundles and Mercurial .hg bundle
2.32-cd $WD/vc && tar -I 'zstd' -cf $OUT/$BUNDLE.tar.zst git/*.git hg/hg.hg
2.33+cd $WD/src && tar -I 'zstd' -cf $OUT/$BUNDLE.tar.zst packy/*
2.34 echo "Done."
3.1--- a/skelfile Sun Jun 16 21:17:26 2024 -0400
3.2+++ b/skelfile Mon Jun 17 01:59:21 2024 +0000
3.3@@ -17,8 +17,10 @@
3.4 (bin () #$mkdir -pv .stash/bin$#)
3.5 ;; src
3.6 (repos (src) #$cd .stash && curl -O https://packy.compiler.company/src/comp.tar.zst && \
3.7- unzstd comp.tar.zst && tar -xf comp.tar -C src && rm comp.tar$#)
3.8- (packy-repos (src) #$cd .stash && curl -O https://vc.compiler.company/src/packy.tar.zst$#)
3.9+ unzstd comp.tar.zst && tar -xf comp.tar -C src && mv src/hg/* src/ && rm -rf src/hg comp.tar$#)
3.10+ (packy-repos (src) #$cd .stash && curl -O https://vc.compiler.company/src/packy.tar.zst && \
3.11+ unzstd packy.tar.zst && mkdir -p src/packy && tar -xf packy.tar -C src/packy && \
3.12+ mv hg/* git/* src/packy/ && rm -rf src/packy/hg src/packy/git packy.tar$#)
3.13 ;; containers
3.14 (archlinux () #$podman build -f .stash/src/pod/Containerfile.archlinux . -t localhost/archlinux$#)
3.15 (alpine () #$podman build -f .stash/src/pod/Containerfile.alpine . -t localhost/alpine$#)