aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano.tronto@gmail.com>2022-01-17 21:52:08 +0100
committerSebastiano Tronto <sebastiano.tronto@gmail.com>2022-01-17 21:52:08 +0100
commita26e6affc58beef0970287499a60ec8fbc5ea170 (patch)
tree5250f1c5e5d27fe6e1eec25470b5fb3f566c25df
parent2f1c9e730284ca837bed612ceff4b3132811af80 (diff)
downloadscripts-a26e6affc58beef0970287499a60ec8fbc5ea170.tar.gz
scripts-a26e6affc58beef0970287499a60ec8fbc5ea170.zip
Removed backup-config
-rw-r--r--Makefile1
-rwxr-xr-xbackup-config29
2 files changed, 0 insertions, 30 deletions
diff --git a/Makefile b/Makefile
index 63650aa..ee3e07f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,6 @@
1PREFIX = /usr/local 1PREFIX = /usr/local
2 2
3SCRIPTS = addressgrep \ 3SCRIPTS = addressgrep \
4 backup-config \
5 battery-checknow \ 4 battery-checknow \
6 battery-status \ 5 battery-status \
7 brightness \ 6 brightness \
diff --git a/backup-config b/backup-config
deleted file mode 100755
index c292bf4..0000000
--- a/backup-config
+++ /dev/null
@@ -1,29 +0,0 @@
1#!/bin/sh
2
3# Backup local configuration files
4
5destdir=$HOME/Dropbox/configbackups
6srcdir=$HOME/.local/src
7
8# Uncomment to clean old backups
9#rm -rf $destdir/config $destdir/scripts $destdir/src
10mkdir -p $destdir/config $destdir/src
11
12# First copy everything from .config and .bashrc and similar
13cp -r $XDG_CONFIG_HOME/* $destdir/config/
14cp $HOME/.bash* $destdir/
15
16# Then copy files from src (only source, config, makefile and READMEs)
17srcsubdirs=$(ls $srcdir)
18for i in $srcsubdirs; do
19 si="$srcdir/$i"
20 if [ -d "$si" ]; then
21 mkdir -p $destdir/src/$i
22 for f in "$si/*.c" "$si/*.h" "$si/config.*" "$si/Makefile" "$si/README*"; do
23 for ff in $f; do
24 [ -e $ff ] && cp $f $destdir/src/$i/
25 done
26 done
27 fi
28done
29

Generated with cgit - Back to sebastiano.tronto.net