summaryrefslogtreecommitdiff
path: root/scripts/q_functions
Unidiff
Diffstat (limited to 'scripts/q_functions') (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/q_functions12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/q_functions b/scripts/q_functions
index cf2c2e1..0705cc2 100755
--- a/scripts/q_functions
+++ b/scripts/q_functions
@@ -118,58 +118,58 @@ END
118} 118}
119 119
120 120
121function print_pro_file 121function print_pro_file
122{ 122{
123cat << END 123cat << END
124 TEMPLATE= app 124 TEMPLATE= app
125 CONFIG = qt warn_on release 125 CONFIG = qt warn_on release
126 DESTDIR = ../bin 126 DESTDIR = ../bin
127 HEADERS = $NEW_CLASS_HEADER_FILE 127 HEADERS = $NEW_CLASS_HEADER_FILE
128 SOURCES = $NEW_CLASS_SOURCE_FILE $NEW_APP_MAIN_FILE 128 SOURCES = $NEW_CLASS_SOURCE_FILE $NEW_APP_MAIN_FILE
129 INTERFACES= 129 INTERFACES=
130 INCLUDEPATH+= ../library 130 INCLUDEPATH+= ../library
131 DEPENDPATH+= ../library 131 DEPENDPATH+= ../library
132LIBS += -lqpe 132LIBS += -lqpe
133 TARGET = $NEW_APP_NAME 133 TARGET = $NEW_APP_NAME
134END 134END
135} 135}
136 136
137 137
138function print_install_file 138function print_install_file
139{ 139{
140cat << END 140cat << END
141#!/bin/sh 141#!/bin/sh
142if [ a\$QPEDIR = a ] 142if [ a\$OPIEDIR = a ]
143then 143then
144echo QPEDIR must be set 144echo OPIEDIR must be set
145exit 145exit
146fi 146fi
147[ -f \$QPEDIR/pics/$NEW_APP_ICON_FILE ] || cp $NEW_APP_ICON_FILE \$QPEDIR/pics/ 147[ -f \$OPIEDIR/pics/$NEW_APP_ICON_FILE ] || cp $NEW_APP_ICON_FILE \$OPIEDIR/pics/
148[ -f \$QPEDIR/apps/$NEW_APP_DESKTOP_FILE ] || cp $NEW_APP_DESKTOP_FILE \$QPEDIR/apps/ 148[ -f \$OPIEDIR/apps/$NEW_APP_DESKTOP_FILE ] || cp $NEW_APP_DESKTOP_FILE \$OPIEDIR/apps/
149mv \$QPEDIR/Makefile \$QPEDIR/Makefile.orig 149mv \$OPIEDIR/Makefile \$OPIEDIR/Makefile.orig
150sed "s/APPS=/&$NEW_APP_NAME \\\\\\\\ \\\\ 150sed "s/APPS=/&$NEW_APP_NAME \\\\\\\\ \\\\
151 /" \$QPEDIR/Makefile.orig >> \$QPEDIR/Makefile 151 /" \$OPIEDIR/Makefile.orig >> \$OPIEDIR/Makefile
152echo You may wish to move the desktop file in to 152echo You may wish to move the desktop file in to
153echo an appropriate subdirectory of the menus. 153echo an appropriate subdirectory of the menus.
154END 154END
155} 155}
156 156
157 157
158function print_desktop_file 158function print_desktop_file
159{ 159{
160cat << END 160cat << END
161[Desktop Entry] 161[Desktop Entry]
162Type=Application 162Type=Application
163Exec=$NEW_APP_NAME 163Exec=$NEW_APP_NAME
164Icon=$NEW_APP_ICON_FILE 164Icon=$NEW_APP_ICON_FILE
165Name=$NEW_APP_MENU_NAME 165Name=$NEW_APP_MENU_NAME
166Comment=$NEW_APP_DESCRIPTION 166Comment=$NEW_APP_DESCRIPTION
167END 167END
168} 168}
169 169
170 170
171function print_icon_file 171function print_icon_file
172{ 172{
173XPM_NAME="$NEW_APP_NAME"_xpm 173XPM_NAME="$NEW_APP_NAME"_xpm
174cat << END 174cat << END
175/* XPM */ 175/* XPM */