File: C_from_ad.sh

package info (click to toggle)
xcal 4.1-19
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, lenny, sid, squeeze, stretch, wheezy
  • size: 780 kB
  • ctags: 3,851
  • sloc: ansic: 5,576; makefile: 4,265; sh: 573
file content (12 lines) | stat: -rw-r--r-- 215 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
#	Turn the help text file into something that C can deal with
SRC=XCal.ad
DST=xcal_ad.h
( 	echo 'static String fallbackResources[] = {'
   	sed -e '
	/^!/d
	s/^/"/
	s/$/",/' $SRC
	echo 'NULL,
};'
) > $DST