|
|
|
@ -303,17 +303,22 @@ done |
|
|
|
|
echo -en "\e[1m-> checking:\e[0m for version control system ..." |
|
|
|
|
VCS="" |
|
|
|
|
VCSDEPENDS="" |
|
|
|
|
if test -d .svn; then |
|
|
|
|
VCS="svn" |
|
|
|
|
VCSDEPENDS_DEB="svn2cl, subversion, subversion-tools," |
|
|
|
|
VCSDEPENDS_RPM="subversion," |
|
|
|
|
echo -e " \e[32msuccess\e[0m detected ${VCS}" |
|
|
|
|
elif test -d .git; then |
|
|
|
|
VCS="git" |
|
|
|
|
VCSDEPENDS_DEB="git2cl, git," |
|
|
|
|
VCSDEPENDS_RPM="git," |
|
|
|
|
echo -e " \e[32msuccess\e[0m detected ${VCS}" |
|
|
|
|
else |
|
|
|
|
for path in . .. ../.. ../../..; do |
|
|
|
|
if test -d ${path}/.svn; then |
|
|
|
|
VCS="svn" |
|
|
|
|
VCSDEPENDS_DEB="svn2cl, subversion, subversion-tools," |
|
|
|
|
VCSDEPENDS_RPM="subversion," |
|
|
|
|
echo -e " \e[32msuccess\e[0m detected ${VCS}" |
|
|
|
|
break |
|
|
|
|
elif test -d ${path}/.git; then |
|
|
|
|
VCS="git" |
|
|
|
|
VCSDEPENDS_DEB="git2cl, git," |
|
|
|
|
VCSDEPENDS_RPM="git," |
|
|
|
|
echo -e " \e[32msuccess\e[0m detected ${VCS}" |
|
|
|
|
break |
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|
if test -z "$VCS"; then |
|
|
|
|
echo -e " \e[33mignored\e[0m" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
@ -634,7 +639,7 @@ LANGUAGE_FILE_BASE = ${PACKAGE_NAME} |
|
|
|
|
QT_PLUGINS = iconengines imageformats platforms |
|
|
|
|
|
|
|
|
|
#### enable if you deliver a KDE/Gnome desktop file |
|
|
|
|
#applicationsdir = ${datarootdir}/applications |
|
|
|
|
#applicationsdir = \${datarootdir}/applications |
|
|
|
|
#dist_applications_DATA = ${PACKAGE_NAME}.desktop |
|
|
|
|
|
|
|
|
|
#### enable (ev. instead of bin_PROGRAMS) if you build a library |
|
|
|
@ -671,25 +676,26 @@ ${PACKAGE_NAME//-/_}_TR_FILES = main.cxx version.cxx |
|
|
|
|
${PACKAGE_NAME//-/_}_SOURCES = \${${PACKAGE_NAME//-/_}_TR_FILES} \${BUILT_SOURCES} |
|
|
|
|
|
|
|
|
|
## automatic assembly, no need to change |
|
|
|
|
BUILT_SOURCES = \${${PACKAGE_NAME//-/_}_MOCFILES} \ |
|
|
|
|
\${${PACKAGE_NAME//-/_}_UIFILES} \ |
|
|
|
|
\${${PACKAGE_NAME//-/_}_TRANSLATIONS} \ |
|
|
|
|
BUILT_SOURCES = \${${PACKAGE_NAME//-/_}_MOCFILES} \\ |
|
|
|
|
\${${PACKAGE_NAME//-/_}_UIFILES} \\ |
|
|
|
|
\${${PACKAGE_NAME//-/_}_TRANSLATIONS} \\ |
|
|
|
|
\${${PACKAGE_NAME//-/_}_RESOURCES} |
|
|
|
|
|
|
|
|
|
## automatic assembly, no need to change |
|
|
|
|
EXTRA_DIST_TR = \${${PACKAGE_NAME//-/_}_MOCFILES:moc_%.cxx=%.hxx} \ |
|
|
|
|
EXTRA_DIST_TR = \${${PACKAGE_NAME//-/_}_MOCFILES:moc_%.cxx=%.hxx} \\ |
|
|
|
|
\${${PACKAGE_NAME//-/_}_UIFILES:ui_%.hxx=%.ui} |
|
|
|
|
|
|
|
|
|
## automatic assembly, no need to change |
|
|
|
|
## except: adapt the pre-delivered qt_%.qm list (language files you copy from qt |
|
|
|
|
EXTRA_DIST = \${EXTRA_DIST_TR} \ |
|
|
|
|
\${${PACKAGE_NAME//-/_}_RESOURCES:qrc_%.cxx:%.qrc} \ |
|
|
|
|
\${${PACKAGE_NAME//-/_}_TRANSLATIONS:%.qm=%.ts} \ |
|
|
|
|
EXTRA_DIST = \${EXTRA_DIST_TR} \\ |
|
|
|
|
\${${PACKAGE_NAME//-/_}_RESOURCES:qrc_%.cxx=%.qrc} \\ |
|
|
|
|
\${${PACKAGE_NAME//-/_}_TRANSLATIONS:%.qm=%.ts} \\ |
|
|
|
|
qt_de.qm qt_fr.qm |
|
|
|
|
|
|
|
|
|
## automatic assembly, no need to change |
|
|
|
|
LANGUAGE_FILES = \${EXTRA_DIST_TR} \${${PACKAGE_NAME//-/_}_TR_FILES} |
|
|
|
|
|
|
|
|
|
CLEANFILES = \${${PACKAGE_NAME//-/_}_RESOURCES} |
|
|
|
|
MAINTAINERCLEANFILES = makefile.in |
|
|
|
|
EOF |
|
|
|
|
to --condition AX_USE_CXX src/main.cxx <<EOF |
|
|
|
|