You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
833 B
33 lines
833 B
#!/usr/bin/env fish |
|
|
|
function devrt-recreate |
|
echo "Ensure that you have committed any changes to the devrt that you need to before recreating." |
|
echo "Type 'ok' to continue, or anything else to exit." |
|
if test (read) != "ok" |
|
exit 1 |
|
end |
|
rm -rf $_agw_dir_dev |
|
tar -xJf $_agw_dir_bin/dev-base.latest.tar.xz |
|
xbps-uunshare -- $_agw_dir_dev /setup.sh |
|
end |
|
|
|
function devrt-commit |
|
pushd ~ |
|
set lf $_agw_dir_bin/dev-base.latest.tar.xz |
|
set nf $_agw_dir_bin/dev-base.(stat -c %Y $lf).tar.xz |
|
mv $lf $nf |
|
tar -Ipixz -cf $lf (string replace ~/ "" -- $_agw_dir_dev) |
|
popd |
|
end |
|
|
|
function devrt |
|
xbps-uunshare \ |
|
-b $_agw_dir_rc:$HOME/rc \ |
|
-b $_agw_dir_src:$HOME/src \ |
|
-b $_agw_dir_bin:$HOME/bin \ |
|
-b $_agw_dir_res:$HOME/res \ |
|
-b ~/.gem:$HOME/.gem \ |
|
-- $_agw_dir_dev /usr/bin/env _agw_chroot=1 /usr/bin/fish -l -i -C cd |
|
end |
|
|
|
## EOF
|
|
|