mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
Rename scripts to swap "-" for "_" for consistency
We had a confusing and unpredictable mix of script names with - vs _, e.g. scripts/prepare-commit.sh vs scripts/sipify_all.sh This unifies with the preferred _ convention for script file names
This commit is contained in:
parent
3656b101ee
commit
85d543a739
4
.github/CONTRIBUTING.md
vendored
4
.github/CONTRIBUTING.md
vendored
@ -9,11 +9,11 @@ Proper formatting
|
||||
Before making a pull request, please make sure your code is properly formatted
|
||||
by running the prepare commit script **before** issuing `git commit`.
|
||||
|
||||
./scripts/prepare-commit.sh
|
||||
./scripts/prepare_commit.sh
|
||||
|
||||
This can be automated by setting up the pre-commit hook properly.
|
||||
|
||||
ln -s ../../scripts/prepare-commit.sh .git/hooks/pre-commit
|
||||
ln -s ../../scripts/prepare_commit.sh .git/hooks/pre-commit
|
||||
|
||||
Getting your pull request merged
|
||||
--------------------------------
|
||||
|
4
.github/PULL_REQUEST_TEMPLATE.md
vendored
4
.github/PULL_REQUEST_TEMPLATE.md
vendored
@ -27,8 +27,8 @@
|
||||
|
||||
- New unit tests have been added for relevant changes
|
||||
|
||||
- You have run the `scripts/prepare-commit.sh` script (https://github.com/qgis/QGIS/blob/master/.github/CONTRIBUTING.md#contributing-to-qgis) before each commit.
|
||||
If you didn't do this, you can also run `./scripts/astyle-all.sh` from your source folder.
|
||||
- You have run the `scripts/prepare_commit.sh` script (https://github.com/qgis/QGIS/blob/master/.github/CONTRIBUTING.md#contributing-to-qgis) before each commit.
|
||||
If you didn't do this, you can also run `./scripts/astyle_all.sh` from your source folder.
|
||||
|
||||
- You have read the QGIS Coding Standards (https://docs.qgis.org/testing/en/docs/developers_guide/codingstandards.html) and this PR complies with them
|
||||
-->
|
||||
|
@ -489,7 +489,7 @@ ENDIF(WITH_CORE)
|
||||
SET(CMAKE_AUTOMOC ON)
|
||||
|
||||
# build our version of astyle
|
||||
SET (WITH_ASTYLE FALSE CACHE BOOL "If you plan to contribute you should reindent with scripts/prepare-commit.sh (using 'our' astyle)")
|
||||
SET (WITH_ASTYLE FALSE CACHE BOOL "If you plan to contribute you should reindent with scripts/prepare_commit.sh (using 'our' astyle)")
|
||||
|
||||
# QML
|
||||
SET(QML_IMPORT_PATH "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}" CACHE PATH "QML directory for QML autocomplete")
|
||||
|
@ -27,15 +27,15 @@ ENDIF(NOT PYUIC_PROGRAM)
|
||||
MACRO(PYQT_WRAP_UI outfiles )
|
||||
IF(CMAKE_HOST_WIN32)
|
||||
IF(USING_NINJA OR USING_NMAKE)
|
||||
SET(PYUIC_WRAPPER "${CMAKE_SOURCE_DIR}/scripts/pyuic-wrapper.bat")
|
||||
SET(PYUIC_WRAPPER "${CMAKE_SOURCE_DIR}/scripts/pyuic_wrapper.bat")
|
||||
SET(PYUIC_WRAPPER_PATH "${QGIS_OUTPUT_DIRECTORY}/bin")
|
||||
ELSE(USING_NINJA OR USING_NMAKE)
|
||||
SET(PYUIC_WRAPPER "${CMAKE_SOURCE_DIR}/scripts/pyuic-wrapper.bat")
|
||||
SET(PYUIC_WRAPPER "${CMAKE_SOURCE_DIR}/scripts/pyuic_wrapper.bat")
|
||||
SET(PYUIC_WRAPPER_PATH "${QGIS_OUTPUT_DIRECTORY}/bin/${CMAKE_BUILD_TYPE}")
|
||||
ENDIF(USING_NINJA OR USING_NMAKE)
|
||||
ELSE(CMAKE_HOST_WIN32)
|
||||
# TODO osx
|
||||
SET(PYUIC_WRAPPER "${CMAKE_SOURCE_DIR}/scripts/pyuic-wrapper.sh")
|
||||
SET(PYUIC_WRAPPER "${CMAKE_SOURCE_DIR}/scripts/pyuic_wrapper.sh")
|
||||
SET(PYUIC_WRAPPER_PATH "${QGIS_OUTPUT_DIRECTORY}/lib")
|
||||
ENDIF(CMAKE_HOST_WIN32)
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
ln -sf ../../scripts/prepare-commit.sh .git/hooks/pre-commit
|
||||
ln -sf ../../scripts/prepare_commit.sh .git/hooks/pre-commit
|
||||
|
@ -4,7 +4,7 @@ diff -up cmake/PyQtMacros.cmake cmake/PyQtMacros.cmake.lib64
|
||||
@@ -36,7 +36,7 @@ MACRO(PYQT_WRAP_UI outfiles )
|
||||
ELSE(CMAKE_HOST_WIN32)
|
||||
# TODO osx
|
||||
SET(PYUIC_WRAPPER "${CMAKE_SOURCE_DIR}/scripts/pyuic-wrapper.sh")
|
||||
SET(PYUIC_WRAPPER "${CMAKE_SOURCE_DIR}/scripts/pyuic_wrapper.sh")
|
||||
- SET(PYUIC_WRAPPER_PATH "${QGIS_OUTPUT_DIRECTORY}/lib")
|
||||
+ SET(PYUIC_WRAPPER_PATH "${QGIS_OUTPUT_DIRECTORY}/lib${LIB_SUFFIX}")
|
||||
ENDIF(CMAKE_HOST_WIN32)
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
###########################################################################
|
||||
# create-transifex-resources.sh
|
||||
# create_transifex_resources.sh
|
||||
# ---------------------
|
||||
# Date : March 2013
|
||||
# Copyright : (C) 2013 by Tim Sutton
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
###########################################################################
|
||||
# prepare-commit.sh
|
||||
# prepare_commit.sh
|
||||
# ---------------------
|
||||
# Date : August 2008
|
||||
# Copyright : (C) 2008 by Juergen E. Fischer
|
@ -3,4 +3,4 @@ set PYUIC=%1
|
||||
set PATH=%2;%PATH%
|
||||
set PYTHONPATH=%3;%PYTHONPATH%
|
||||
set PYTHON=%4
|
||||
%PYTHON% %~dp0\pyuic-wrapper.py %5 %6 %7 %8 %9
|
||||
%PYTHON% %~dp0\pyuic_wrapper.py %5 %6 %7 %8 %9
|
@ -2,7 +2,7 @@
|
||||
|
||||
"""
|
||||
***************************************************************************
|
||||
pyuic-wrapper.py
|
||||
pyuic_wrapper.py
|
||||
---------------------
|
||||
Date : March 2016
|
||||
Copyright : (C) 2016 by Juergen E. Fischer
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
###########################################################################
|
||||
# pyuic-wrapper.sh
|
||||
# pyuic_wrapper.sh
|
||||
# ---------------------
|
||||
# Date : March 2016
|
||||
# Copyright : (C) 2016 by Juergen E. Fischer
|
||||
@ -22,4 +22,4 @@ shift 4
|
||||
|
||||
export LD_LIBRARY_PATH PYTHONPATH
|
||||
|
||||
exec $PYTHON $(dirname $0)/pyuic-wrapper.py "$@"
|
||||
exec $PYTHON $(dirname $0)/pyuic_wrapper.py "$@"
|
@ -164,7 +164,7 @@ run( "scripts/create_changelog.sh", "create_changelog.sh failed" );
|
||||
run( "perl -i -pe 's#<releases>#<releases>\n <release version=\"$newmajor.$newminor.$newpatch\" date=\"" . strftime("%Y-%m-%d", localtime) . "\" />#' linux/org.qgis.qgis.appdata.xml.in", "appdata update failed" );
|
||||
|
||||
unless( $dopoint ) {
|
||||
run( "scripts/update-news.pl $newmajor.$newminor '$newreleasename'", "could not update news" ) if $major>2 || ($major==2 && $minor>14);
|
||||
run( "scripts/update_news.pl $newmajor.$newminor '$newreleasename'", "could not update news" ) if $major>2 || ($major==2 && $minor>14);
|
||||
|
||||
run( "git commit -n -a -m \"changelog and news update for $release\"", "could not commit changelog and news update" );
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env perl
|
||||
###########################################################################
|
||||
# ts-clear.pl
|
||||
# ts_clear.pl
|
||||
# ---------------------
|
||||
# begin : October 2018
|
||||
# copyright : (C) 2018 by Juergen E. Fischer
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
###########################################################################
|
||||
# update-indent.sh
|
||||
# update_indent.sh
|
||||
# ---------------------
|
||||
# Date : August 2008
|
||||
# Copyright : (C) 2008 by Juergen E. Fischer
|
@ -66,10 +66,10 @@ system "txt2tags -oNEWS -t txt doc/NEWS.t2t";
|
||||
|
||||
=head1 NAME
|
||||
|
||||
update-news.pl - updates the news file from changelog.qgis.org
|
||||
update_news.pl - updates the news file from changelog.qgis.org
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
update-news.pl version releasename
|
||||
update_news.pl version releasename
|
||||
|
||||
=cut
|
@ -126,7 +126,7 @@ if [ $action = push ]; then
|
||||
exit 1
|
||||
fi
|
||||
cp i18n/qgis_en.ts /tmp/qgis_en.ts-downloaded
|
||||
perl scripts/ts-clear.pl # reset English translations
|
||||
perl scripts/ts_clear.pl # reset English translations
|
||||
elif [ $action = pull ]; then
|
||||
rm -f i18n/qgis_*.ts
|
||||
|
||||
|
@ -65,8 +65,8 @@ Tips to prevent and resolve:
|
||||
* Enable WITH_ASTYLE in your cmake configuration to format C++ code
|
||||
* Install autopep8 (>= 1.2.1) to format python code
|
||||
* Use "scripts/astyle.sh file" to fix the now badly indented files
|
||||
* Consider using scripts/prepare-commit.sh as pre-commit hook to avoid this
|
||||
in the future (ln -s ../../scripts/prepare-commit.sh .git/hooks/pre-commit) or
|
||||
* Consider using scripts/prepare_commit.sh as pre-commit hook to avoid this
|
||||
in the future (ln -s ../../scripts/prepare_commit.sh .git/hooks/pre-commit) or
|
||||
run it manually before each commit.
|
||||
EOF
|
||||
|
@ -1,5 +1,5 @@
|
||||
IF(WITH_ASTYLE)
|
||||
ADD_TEST(qgis_indentation ${CMAKE_SOURCE_DIR}/scripts/verify-indentation.sh)
|
||||
ADD_TEST(qgis_indentation ${CMAKE_SOURCE_DIR}/scripts/verify_indentation.sh)
|
||||
ENDIF(WITH_ASTYLE)
|
||||
|
||||
ADD_TEST(qgis_banned_keywords ${CMAKE_SOURCE_DIR}/tests/code_layout/test_banned_keywords.sh)
|
||||
|
Loading…
x
Reference in New Issue
Block a user