dslinux/user/pixil/scripts/tools build_script config.pl indent.sh prefix.pl
amadeus
dslinux_amadeus at user.in-berlin.de
Tue Oct 3 13:27:08 CEST 2006
Update of /cvsroot/dslinux/dslinux/user/pixil/scripts/tools
In directory antilope:/tmp/cvs-serv11916/scripts/tools
Added Files:
build_script config.pl indent.sh prefix.pl
Log Message:
adding pristine copy of pixil to HEAD so I can branch from it
--- NEW FILE: indent.sh ---
#!/bin/sh
indent -i4 -br -ce -npcs -nsob -bap -psl "$@"
--- NEW FILE: build_script ---
#!/bin/sh
# build_script
#
# This shell file builds out the start script file based on the
# specified template and config file
TEMPLATE=$1
CONFIG=$2
if [ -z "$TEMPLATE" ]; then \
echo "Error - you didn't specify a template file"
exit 1
fi
if [ -z "$CONFIG" ]; then \
echo "Error - you didn't specify a config file"
exit 1
fi
# Source the config file
. $CONFIG
# Now, actually replace the settings in the file
cat $TEMPLATE | \
sed -e s%@prefix@%$PREFIX%g | \
sed -e s%@installdir@%$INSTALL_DIR%g | \
sed -e s%@mwdir@%$MWDIR%g | \
sed -e s%@fltkdir@%$FLTKDIR%g
--- NEW FILE: config.pl ---
#!/usr/bin/perl
#
# Copyright (c) 2003 Century Software, Inc. All Rights Reserved.
#
# This file is part of the PIXIL Operating Environment
#
# The use, copying and distribution of this file is governed by one
# of two licenses, the PIXIL Commercial License, or the GNU General
# Public License, version 2.
#
# Licensees holding a valid PIXIL Commercial License may use this file
# in accordance with the PIXIL Commercial License Agreement provided
# with the Software. Others are governed under the terms of the GNU
# General Public License version 2.
#
# This file may be distributed and/or modified under the terms of the
# GNU General Public License version 2 as published by the Free
# Software Foundation and appearing in the file LICENSE.GPL included
# in the packaging of this file.
#
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
# THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A
# PARTICULAR PURPOSE.
#
# RESTRICTED RIGHTS LEGEND
#
# Use, duplication, or disclosure by the government is subject to
# restriction as set forth in paragraph (b)(3)(b) of the Rights in
# Technical Data and Computer Software clause in DAR 7-104.9(a).
#
# See http://embedded.centurysoftware.com/gpl/ for GPL licensing
# information.
#
# See http://embedded.centurysoftware.com/license.html or
# email cetsales at centurysoftware.com for information about the PIXIL
# Commercial License Agreement, or if any conditions of this licensing
# are not clear to you.
die "Usage: ./config.pl <config file>\n" unless ($#ARGV >= 0);
open(FILE, $ARGV[0]) or die "Couldn't open $ARGV[0]\n";
print "/*\n*Automatically generated by config.pl: do not edit\n*/\n\n";
while(<FILE>) {
next if /^#/;
next unless /^(.*)=(.*)/;
if ($2 eq "y") { print "#define $1 1\n"; }
else { print "#undef $1\n"; }
}
close(FILE);
--- NEW FILE: prefix.pl ---
#!/bin/sh
#
# Copyright (c) 2003 Century Software, Inc. All Rights Reserved.
#
# This file is part of the PIXIL Operating Environment
#
# The use, copying and distribution of this file is governed by one
# of two licenses, the PIXIL Commercial License, or the GNU General
# Public License, version 2.
#
# Licensees holding a valid PIXIL Commercial License may use this file
# in accordance with the PIXIL Commercial License Agreement provided
# with the Software. Others are governed under the terms of the GNU
# General Public License version 2.
#
# This file may be distributed and/or modified under the terms of the
# GNU General Public License version 2 as published by the Free
# Software Foundation and appearing in the file LICENSE.GPL included
# in the packaging of this file.
#
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
# THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A
# PARTICULAR PURPOSE.
#
# RESTRICTED RIGHTS LEGEND
#
# Use, duplication, or disclosure by the government is subject to
# restriction as set forth in paragraph (b)(3)(b) of the Rights in
# Technical Data and Computer Software clause in DAR 7-104.9(a).
#
# See http://embedded.centurysoftware.com/gpl/ for GPL licensing
# information.
#
# See http://embedded.centurysoftware.com/license.html or
# email cetsales at centurysoftware.com for information about the PIXIL
# Commercial License Agreement, or if any conditions of this licensing
# are not clear to you.
INSTALL_DIR=/usr/local
cat ./par.xml | sed -e s%@prefix@%${INSTALL_DIR}%g
More information about the dslinux-commit
mailing list