bootstrap=false
recompile=false
show_pkgs=false
+dryrun=false
while [[ $1 == -* ]]; do
case $1 in
-b) bootstrap=true; recompile=true ;;
+ -n) dryrun=true ;;
-r) recompile=true ;;
--no-r) recompile=false ;;
-u) update=true ;;
fi
done
-pkgs=(gawk attr autoconf-archive git install-info)
+# ccache is a missing build dep for mu
+pkgs=(gawk attr autoconf-archive git install-info ccache)
##### warning, apt-rdepends seems to look at the newest version of the package,
##### not the one that build-dep would install.
if $show_pkgs; then
# e/e because autofs failing to mount will make it so
# you cant ls whatever directory it is in, so we
-# need an extra directory
-dirs=($dir $dir-nox/.iank/e/e)
+# need an extra directory. i dunno why this was like this instead of just $dir-nox.
+#dirs=($dir $dir-nox/.iank/e/e)
+
+dirs=($dir $dir-nox)
+
if [[ -e $dir ]]; then
m cd $dir
bootstrap=true
fi
+if $dryrun; then
+ echo recompile=$recompile bootstrap=$bootstrap update=$update
+ exit 0
+fi
+
if $bootstrap; then
m rsync --delete -ra /a/opt/emacs/ $dir
recompile=true
;;&
debian|ubuntu|trisquel)
# todo: unknown for other distros, this will fail
- logq p -y build-dep maildir-utils/$(debian-codename)
+ logq p -y build-dep maildir-utils
# oddly, on ubuntu 14.04 this installs postfix, but I dun care
# ubuntu 14.04 gave this error message
# Unable to satisfy the build-depends: Build-Depends: libpng-dev
nox=false
for d in ${dirs[@]}; do
if $nox; then
- # todo: this doesnt account for
- m mkdir -p ${d%/*}
+ # Commented stuff in this block had something to do with ssh / autofs, im not really using nox right now,
+ # so unless I figure out why it was this way, ignore this.
+ # m mkdir -p ${d%/*}
m rsync --delete -ra $dir/ $d
- mp=$HOME/.iank/e/e
- if mountpoint $mp &>/dev/null; then
- m sudo umount $mp
- fi
- m mkdir -p $mp
- m sudo mount -o bind $d $mp
- m sudo chown $USER:$USER $mp
- m cd $mp
+ #
+ # mp=$HOME/.iank/e/e
+ # if mountpoint $mp &>/dev/null; then
+ # m sudo umount $mp
+ # fi
+ # m mkdir -p $mp
+ # m sudo mount -o bind $d $mp
+ # m sudo chown $USER:$USER $mp
+ # m cd $mp
+
+ # instead of $mp above
+ m cd $d
else
m cd $d
fi