Results 1 to 1 of 1
Two code snippets from my program:
Code:
show_license()
{
tail -n 674 -q "$0" | less
}
Code:
echo "\n"
fi
echo "Press return to go back to the main ...
- 03-06-2008 #1Just Joined!
- Join Date
- Mar 2008
- Posts
- 6
Just come up with something pretty cool... thought I'd share
Two code snippets from my program:
Code:show_license() { tail -n 674 -q "$0" | less }This means I can include the license at the end of the source and have a menu option to show it without duplicating or using nasty long strings.Code:echo "\n" fi echo "Press return to go back to the main menu." done :<<’LICENSE’ GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies...
(Just so you know, you don't need a closing LICENSE if the comment block is at the end of the file)


Reply With Quote