linkdata2sd  Check-in [371692ac98]

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

Overview
Comment:cuando se esta en internal ofrece opcion snap. Al cambiar de version continuar en el mismo directorio
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:371692ac98f836455b39ef081f9f06d61b19619c
User & Date: suse 2016-03-19 04:06:23
Context
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
03:57
agrega comando snap. corrige la ayuda y al hacer link/unlink seguir en el mismo directorio check-in: d09c797f83 user: suse tags: trunk
Changes

Changes to linksd.sh.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
..
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92










93
94
95
96
97
98
99
...
203
204
205
206
207
208
209
210
211

212
213
214
215
216
217
218
#!/system/bin/sh

SDDIR=/data/sdext2/linked_data
DATADIR=/data/data
PREUPDATE=update-linksd

# debug
#SDDIR=`realpath debug_linked_data`
#DATADIR=`realpath debug_data_data`

now() {
	date +"%Y%m%d_%H%M%S"
}

msg() {
	echo "$@"
................................................................................



# dir 
ui_phone_to_sd() {
	cd $DATADIR
	usage=`du -sh "$1" | cut -f1`
	echo -n "-> $1 [$usage] (link/delete/sh): "
	read r
	case "$r" in
		link)
			vers=`now`
			mkdir "$SDDIR" 2>/dev/null
			mkdir "$SDDIR/$1" 2>/dev/null
			mkdir "$SDDIR/$1/$vers" ||
				error no se pudo crear nueva version en sd
			dolink "$1" "$SDDIR/$1/$vers" dolink
			msg "linkeado como version '$vers'"
		  	ui_sd_to_phone "$@"
			;;










		delete)
			deltree "$1"
			;;
		sh)
			(cd "$1" && sh)
		  	ui_phone_to_sd "$@"
			;;
................................................................................
		*)                                                    
			if [ -d "$vers_dir/$r" ]; then
				rm "$DATADIR/$1" ||
					error error al intentar eliminar enlace actual
				ln -s "$vers_dir/$r/$1" "$DATADIR/$1"
			else
                          msg respuesta invalida
                          ui_sd_to_phone "$@"
                        fi

	esac                                  
}




search() {







|
|







 







|












>
>
>
>
>
>
>
>
>
>







 







<

>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
..
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
...
213
214
215
216
217
218
219

220
221
222
223
224
225
226
227
228
#!/system/bin/sh

SDDIR=/data/sdext2/linked_data
DATADIR=/data/data
PREUPDATE=update-linksd

# debug
SDDIR=`realpath debug_linked_data`
DATADIR=`realpath debug_data_data`

now() {
	date +"%Y%m%d_%H%M%S"
}

msg() {
	echo "$@"
................................................................................



# 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" ||
				error no se pudo crear nueva version en sd
			dolink "$1" "$SDDIR/$1/$vers" dolink
			msg "linkeado como version '$vers'"
		  	ui_sd_to_phone "$@"
			;;
		snap)
			newvers=`now`
			mkdir "$SDDIR" 2>/dev/null
			mkdir "$SDDIR/$1" 2>/dev/null
			mkdir "$SDDIR/$1/$newvers" ||
				error no se pudo crear nueva version en sd
			dolink "$1" "$SDDIR/$1/$newvers" snapshot
			msg "snapshot como '$newvers'"
			ui_phone_to_sd "$@"
			;;
		delete)
			deltree "$1"
			;;
		sh)
			(cd "$1" && sh)
		  	ui_phone_to_sd "$@"
			;;
................................................................................
		*)                                                    
			if [ -d "$vers_dir/$r" ]; then
				rm "$DATADIR/$1" ||
					error error al intentar eliminar enlace actual
				ln -s "$vers_dir/$r/$1" "$DATADIR/$1"
			else
                          msg respuesta invalida

                        fi
                        ui_sd_to_phone "$@"
	esac                                  
}




search() {