+SUBDIRS = scripts
+
bin_PROGRAMS = lsbackups
bin_SCRIPTS = find-cmd.sh
AC_PROG_RANLIB()
AC_CONFIG_FILES( [Makefile] )
+AC_CONFIG_FILES( [scripts/Makefile] )
AC_OUTPUT
+++ /dev/null
-#!/bin/sh
-
-{
- for type in d f l; do
- find . -type $type -printf "$type %#m %u %g %s %CY%Cm%Cd%CH%CM%CS 0 %p\0"
- done
-}
+++ /dev/null
-#!/bin/sh
-
-# This file just has some ideas about how to do the rsync command with the list
-# of file produced by lsbackups
-
-# -H ? -W ?
-rsync_opts='-W -H -l -p -t -g -o -0 --files-from=-'
-
-other_opts='--stats --progress'
-
-# This would something like be /home
-srcdir=~/test/a
-
-# This would be something like /mnt/dvdisoimage
-dstdir=~/destdir
-
-# # For directories ( Do I even need this? I don't think so. )
-# find $srcdir -type d -print0 | # this just produces an example null-delimited list.
-# rsync -d $rsync_opts $other_opts / $dstdir
-
-# Should also include directories in there
-find $srcdir \( -type f -o -type l -o -type d \) -print0 | # this just produces an example null-delimited list.
- rsync $rsync_opts $other_opts / $dstdir
-
--- /dev/null
+EXTRA_DIST= \
+ find-cmd.sh \
+ list-dates.rb \
+ other-commands \
+ rsync-cmd.sh
--- /dev/null
+#!/bin/sh
+
+{
+ for type in d f l; do
+ find . -type $type -printf "$type %#m %u %g %s %CY%Cm%Cd%CH%CM%CS 0 %p\0"
+ done
+}
--- /dev/null
+# Handling null-delimited files with...
+
+# xargs
+xargs -0
+
+# grep
+grep [-z|--null-data]
+
+# sed
+# Can't figure this one out
+
+# awk
+awk 'BEGIN { RS="\0" } {print...}'
--- /dev/null
+#!/bin/sh
+
+# This file just has some ideas about how to do the rsync command with the list
+# of file produced by lsbackups
+
+# -H ? -W ?
+rsync_opts='-W -H -l -p -t -g -o -0 --files-from=-'
+
+other_opts='--stats --progress'
+
+# This would something like be /home
+srcdir=~/test/a
+
+# This would be something like /mnt/dvdisoimage
+dstdir=~/destdir
+
+# # For directories ( Do I even need this? I don't think so. )
+# find $srcdir -type d -print0 | # this just produces an example null-delimited list.
+# rsync -d $rsync_opts $other_opts / $dstdir
+
+# Should also include directories in there
+find $srcdir \( -type f -o -type l -o -type d \) -print0 | # this just produces an example null-delimited list.
+ rsync $rsync_opts $other_opts / $dstdir
+