From df29698f530357f9419cb72e70a808f93235e915 Mon Sep 17 00:00:00 2001 From: Mike Burns Date: Tue, 12 Aug 2014 13:28:04 +0200 Subject: Generate an installation script This commit adds a `-g` flag to rcup(1) to generate a standalone shell script. This shell script can then be run again, even on different computers, to recreate the symlinks. This allows people to recreate the "download my dotfiles and run ./install.sh" instructions, but with generated code that they do not need to maintain. This provides us more freedom with lsrc(1): since rcm can be used to generate a universal shell script, lsrc(1) now can be harder to install -- it can depend on a compiler, for example -- because you only need to install it on one machine. The generated script is rather limited; this can be improved in future commits, as desired. --- bin/mkrc.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/mkrc.in') diff --git a/bin/mkrc.in b/bin/mkrc.in index 55a7cd8..8932926 100755 --- a/bin/mkrc.in +++ b/bin/mkrc.in @@ -101,8 +101,8 @@ for file in $files; do dotless="$(de_dot "$file")" dest="$(destination "$DOTFILES_DIR" "$dotless" $in_host "$tag")" mkdir -p "$dest/$(dirname "$dotless")" - $PRINT "Moving..." + $VERBOSE "Moving..." mv_v "$file" "$dest/$dotless" - $PRINT "Linking..." + $VERBOSE "Linking..." $INSTALL -d "$DOTFILES_DIR" -t "${tag:--}" $install_args "$dotless" done -- cgit v1.2.3