diff options
author | Mike Burns <mike@mike-burns.com> | 2014-08-12 13:28:04 +0200 |
---|---|---|
committer | Mike Burns <mike@mike-burns.com> | 2014-08-26 16:58:46 +0200 |
commit | df29698f530357f9419cb72e70a808f93235e915 (patch) | |
tree | 60df5953ee7dc0fa454f87b69bbef7b6e732dd6c /bin/mkrc.in | |
parent | 8465d6a8d3568537f15688c66bc136a137e9c005 (diff) |
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.
Diffstat (limited to 'bin/mkrc.in')
-rwxr-xr-x | bin/mkrc.in | 4 |
1 files changed, 2 insertions, 2 deletions
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 |