diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2022-01-17 21:52:08 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2022-01-17 21:52:08 +0100 |
| commit | a26e6affc58beef0970287499a60ec8fbc5ea170 (patch) | |
| tree | 5250f1c5e5d27fe6e1eec25470b5fb3f566c25df | |
| parent | 2f1c9e730284ca837bed612ceff4b3132811af80 (diff) | |
| download | scripts-a26e6affc58beef0970287499a60ec8fbc5ea170.tar.gz scripts-a26e6affc58beef0970287499a60ec8fbc5ea170.zip | |
Removed backup-config
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 1 | ||||
| -rwxr-xr-x | backup-config | 29 |
2 files changed, 0 insertions, 30 deletions
| @@ -1,7 +1,6 @@ | |||
| 1 | PREFIX = /usr/local | 1 | PREFIX = /usr/local |
| 2 | 2 | ||
| 3 | SCRIPTS = addressgrep \ | 3 | SCRIPTS = 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 | |||
| 5 | destdir=$HOME/Dropbox/configbackups | ||
| 6 | srcdir=$HOME/.local/src | ||
| 7 | |||
| 8 | # Uncomment to clean old backups | ||
| 9 | #rm -rf $destdir/config $destdir/scripts $destdir/src | ||
| 10 | mkdir -p $destdir/config $destdir/src | ||
| 11 | |||
| 12 | # First copy everything from .config and .bashrc and similar | ||
| 13 | cp -r $XDG_CONFIG_HOME/* $destdir/config/ | ||
| 14 | cp $HOME/.bash* $destdir/ | ||
| 15 | |||
| 16 | # Then copy files from src (only source, config, makefile and READMEs) | ||
| 17 | srcsubdirs=$(ls $srcdir) | ||
| 18 | for 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 | ||
| 28 | done | ||
| 29 | |||
