Check-in [aae9e71355]

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

Overview
Comment:Update the blog scripts.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: aae9e71355e597580c650e1d37fbbdf3974ccb22
User & Date: stephanie.gawroriski 2019-09-02 15:10:29
Context
2019-09-02
15:16
Change the UNIX build script to use the wrapper java/javac scripts instead. check-in: 4ac68bd874 user: stephanie.gawroriski tags: trunk
15:10
Update the blog scripts. check-in: aae9e71355 user: stephanie.gawroriski tags: trunk
15:05
Move decomma dependencies script to the old area. check-in: 5785f4147c user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to utils-dev/blog.sh.

8
9
10
11
12
13
14
15
16

17
18
19
20
21
22
23
..
29
30
31
32
33
34
35
36

37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# For more information see license.txt.
# ---------------------------------------------------------------------------
# DESCRIPTION: Creates a new blog entry! joy!

# Force C locale
export LC_ALL=C

# Directory of this script
__exedir="$(dirname -- "$0")"


# Current user
__myname="$($__exedir/myname.sh)"

# Get the current date in string form.
__nowyear="$(date +%Y)"
__nowmont="$(date +%m)"
................................................................................

# Does it need to be added into unversioned space?
__job=0
if [ "$( (fossil unversion ls; echo "$__fname") | sort | uniq -d | wc -l)" \
	-eq "0" ]
then
	# Create temporary
	sed "s/YYYYMMDD/$__htmtime/g" < "$__exedir/crtmpl/blog.mkd" > /tmp/$$

	
	# Add to unversioned space
	fossil unversion add /tmp/$$ --as "$__fname"
	
	# Rebuild the blog index
	"$__exedir/indexblog.sh"
	
	# Delete temporary
	rm -f /tmp/$$
fi

# Edit it
fossil unversion edit "$__fname"









|

>







 







|
>


|





|






8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
..
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# For more information see license.txt.
# ---------------------------------------------------------------------------
# DESCRIPTION: Creates a new blog entry! joy!

# Force C locale
export LC_ALL=C

# Common directories
__exedir="$(dirname -- "$0")"
__tmpdir="$("$__exedir/tmpdir.sh")"

# Current user
__myname="$($__exedir/myname.sh)"

# Get the current date in string form.
__nowyear="$(date +%Y)"
__nowmont="$(date +%m)"
................................................................................

# Does it need to be added into unversioned space?
__job=0
if [ "$( (fossil unversion ls; echo "$__fname") | sort | uniq -d | wc -l)" \
	-eq "0" ]
then
	# Create temporary
	sed "s/YYYYMMDD/$__htmtime/g" < "$__exedir/crtmpl/blog.mkd" \
		> "$__tmpdir/$$"
	
	# Add to unversioned space
	fossil unversion add "$__tmpdir/$$" --as "$__fname"
	
	# Rebuild the blog index
	"$__exedir/indexblog.sh"
	
	# Delete temporary
	rm -f "$__tmpdir/$$"
fi

# Edit it
fossil unversion edit "$__fname"


Changes to utils-dev/indexblog.sh.

8
9
10
11
12
13
14
15
16

17
18
19
20
21
22
23
...
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
# See license.mkd for licensing and copyright information.
# ---------------------------------------------------------------------------
# DESCRIPTION: Re-indexes the blogs

# Force C locale
export LC_ALL=C

# Directory of this script
__exedir="$(dirname -- "$0")"


# Counts arguments used
__count_args()
{
	echo "$#"
}

................................................................................
		
		# Print out page
		echo " * [$__head]($(echo "$__line" | sed 's/^\.\///g'))"
	done
}

# Print both
if (__primary && __secondary) > /tmp/$$
then
	fossil unversion add /tmp/$$ --as developer-notes/index.mkd
fi

# Delete temporary file
rm -f /tmp/$$








|

>







 







|

|



|

8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
...
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
# See license.mkd for licensing and copyright information.
# ---------------------------------------------------------------------------
# DESCRIPTION: Re-indexes the blogs

# Force C locale
export LC_ALL=C

# Common directories
__exedir="$(dirname -- "$0")"
__tmpdir="$("$__exedir/tmpdir.sh")"

# Counts arguments used
__count_args()
{
	echo "$#"
}

................................................................................
		
		# Print out page
		echo " * [$__head]($(echo "$__line" | sed 's/^\.\///g'))"
	done
}

# Print both
if (__primary && __secondary) > "$__tmpdir/$$"
then
	fossil unversion add "$__tmpdir/$$" --as developer-notes/index.mkd
fi

# Delete temporary file
rm -f "$__tmpdir/$$"