linkdata2sd  Check-in [3bb925e740]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:prompt mas claro
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:3bb925e7405cffd7e48f22b2771cad5bec4db1ca
User & Date: brau 2016-03-20 12:04:23
Context
2016-03-21
00:15
refactoriza y agrega modo recover. Detecta enlace roto check-in: c972a7703c user: brau tags: trunk
2016-03-20
12:04
prompt mas claro check-in: 3bb925e740 user: brau tags: trunk
2016-03-19
04:06
cuando se esta en internal ofrece opcion snap. Al cambiar de version continuar en el mismo directorio check-in: 371692ac98 user: suse tags: trunk
Changes

Changes to linksd.sh.

73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
...
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178



# dir 
ui_phone_to_sd() {
	cd $DATADIR
	usage=`du -sh "$1" | cut -f1`
	echo -n "-> $1 [$usage] (link/delete/sh/snap): "
	read r
	case "$r" in
		link)
			vers=`now`
			mkdir "$SDDIR" 2>/dev/null
			mkdir "$SDDIR/$1" 2>/dev/null
			mkdir "$SDDIR/$1/$vers" ||
................................................................................
	fi

	cd `dirname $dest_dir`
	dir=`basename $dest_dir`
	usage=`du -sh "$dest_dir" | cut -f1`

	(cd $vers_dir && ls_vs $vers)
	echo -n "<- $1 [$usage] (unlink/delete/sh/VERSION/snap/ren): "
	read r                                                        
	case "$r" in                                                  
		unlink)                                                 
			rm "$DATADIR/$1" ||
				error error al intentar eliminar enlace
			dolink "$dir" "$DATADIR"
			ui_phone_to_sd "$@"







|







 







|







73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
...
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178



# dir 
ui_phone_to_sd() {
	cd $DATADIR
	usage=`du -sh "$1" | cut -f1`
	echo -n "$1 [$usage, phone] (link/delete/sh/snap): "
	read r
	case "$r" in
		link)
			vers=`now`
			mkdir "$SDDIR" 2>/dev/null
			mkdir "$SDDIR/$1" 2>/dev/null
			mkdir "$SDDIR/$1/$vers" ||
................................................................................
	fi

	cd `dirname $dest_dir`
	dir=`basename $dest_dir`
	usage=`du -sh "$dest_dir" | cut -f1`

	(cd $vers_dir && ls_vs $vers)
	echo -n "$1 [$usage, sd] (unlink/delete/sh/VERSION/snap/ren): "
	read r                                                        
	case "$r" in                                                  
		unlink)                                                 
			rm "$DATADIR/$1" ||
				error error al intentar eliminar enlace
			dolink "$dir" "$DATADIR"
			ui_phone_to_sd "$@"