[go: up one dir, main page]

File: mkdate

package info (click to toggle)
atop 2.12.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,328 kB
  • sloc: ansic: 35,620; python: 257; sh: 248; makefile: 193
file content (10 lines) | stat: -rwxr-xr-x 275 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

# Make a new versdate.h with the current date filled
#
CURDATE=$(date +%Y/%m/%d\ %H:%M:%S)

echo "#ifndef __ATOP_VERSDATA__"	> versdate.h
echo "#define __ATOP_VERSDATA__"	>> versdate.h
echo "#define	ATOPDATE	\"$CURDATE\""	>> versdate.h
echo "#endif"	>> versdate.h