mkdir 'correct'
-cat > 'correct/global.h' <<EOF
+cat > 'correct/global.h' <<'EOF'
/* Automatically generated from */
#ifndef _global_H
#define _global_H
#define CONFIG_TEST_APOS "Text+apostrophes"
#endif /* _global_H */
EOF
-cat > 'correct/toplevel_config.h' <<EOF
+cat > 'correct/toplevel_config.h' <<'EOF'
/* Automatically generated from */
#ifndef _LOCAL_CONFIG_H
#define _LOCAL_CONFIG_H
#define CONFIG_OC_LINCAN 1
#endif /*_LOCAL_CONFIG_H*/
EOF
-cat > 'correct/lincan_config.h' <<EOF
+cat > 'correct/lincan_config.h' <<'EOF'
/* Automatically generated from */
#ifndef _LOCAL_CONFIG_H
#define _LOCAL_CONFIG_H
#define CONFIG_OC_LINCAN_CARD_template 1
#endif /*_LOCAL_CONFIG_H*/
EOF
-cat > 'config.omk-default' <<EOF
+cat > 'config.omk-default' <<'EOF'
# Start of OMK config file
# This file should not be altered manually
# Overrides should be stored in file config.omk
#CONFIG_OC_LINCAN=x
#CONFIG_UNKNOWN=x
EOF
-cat > 'Makefile.omk' <<EOF
+cat > 'Makefile.omk' <<'EOF'
SUBDIRS=lincan
default_CONFIG = CONFIG_TEST_NUM=123 CONFIG_TEST_STR=Hello
CONFIG_TEST_NUM CONFIG_TEST_STR CONFIG_TEST_APOS
EOF
mkdir 'lincan'
-cat > 'lincan/configtest.c' <<EOF
+cat > 'lincan/configtest.c' <<'EOF'
#include "lincan_config.h"
int main(void)
{
- /* With default CFLAGS a warning should be produced: control reaches end of non-void function */
+ return 0;
}
EOF
-cat > 'lincan/Makefile.omk' <<EOF
+cat > 'lincan/Makefile.omk' <<'EOF'
lincan_cards_NAMES = pip pccan smartcan nsi cc_can104 ems_cpcpci \
pc_i03 pcm3680 aim104 m437 pcccan ssv bfadcan gensja1000io pikronisa eb8245 \
kv_pcican msmcan oscar adlink7841 unican virtual template