Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
158 commits
Select commit Hold shift + click to select a range
1ab6af2
Bump php version
tvdijen Jul 1, 2022
834f75a
Formatting
thijskh Jul 4, 2022
a53edde
Reorder some toptics in the index page
thijskh Jul 4, 2022
fd4af50
Improve modules section of docs index a bit
thijskh Jul 4, 2022
318c057
update links to external module docs
thijskh Jul 4, 2022
7194b68
Remove obsolete translation instructions
thijskh Jul 5, 2022
131c640
Remove deprecated string use-case for NameIDPolicy
tvdijen Jul 6, 2022
dc5ad30
Fix many spelling mistakes
tvdijen Jul 9, 2022
954b7d9
Fix for bin/get-translation-strings
tvdijen Jul 10, 2022
4f85be6
Run bin/get-translatable-strings
tvdijen Jul 10, 2022
e756c02
Fix typo
tvdijen Jul 11, 2022
6ecef87
Add job to trigger docs build
tvdijen Jul 4, 2022
1f6ac1e
Perform spell checking
tvdijen Jul 7, 2022
62bd330
Fix markdown
tvdijen Jul 7, 2022
a71779d
Fix spelling mistake
tvdijen Jul 9, 2022
8205f8e
Merge pull request #1665 from simplesamlphp/feature/trigger-docs-build
tvdijen Jul 14, 2022
53cd110
Fix: build docs on push
tvdijen Jul 14, 2022
2d256c7
Import changelog from 1.19
tvdijen Jul 14, 2022
69bec7b
Branch off changelog
tvdijen Jul 14, 2022
f3fbf00
Fix release branches
tvdijen Jul 14, 2022
1764dd4
Update url in docs for modern paths and do not silence all curl output
thijskh Jul 15, 2022
868a438
Bump terser from 5.10.0 to 5.14.2
dependabot[bot] Jul 20, 2022
d7c6d21
Bypass Symfony check for writable log-dir
tvdijen Jul 21, 2022
3bb3916
Fix release-branch
tvdijen Aug 2, 2022
1f22f28
Symfony6 (#1675)
Berdir Aug 12, 2022
e2e49b2
Fix uninitialized var
tvdijen Aug 13, 2022
91760fd
Also update symfony/dependency-injection (#1677)
Berdir Aug 13, 2022
d02e886
Translation contracts (#1678)
Berdir Aug 13, 2022
c32e2ed
Bugfix: replace /dev/null with system tmp-dir
tvdijen Aug 14, 2022
e1bef09
Delete simplesamlphp-changelog.md
tvdijen Aug 16, 2022
e5669a0
Extend key rollover docs
thijskh Aug 19, 2022
8a68ea2
Fix markdown
tvdijen Aug 19, 2022
bba44d6
Do not run CI if only md-files were changed
tvdijen Aug 19, 2022
5ecd401
Fix metadata endpoints
tvdijen Aug 20, 2022
f85e6bf
Improve debugging message of invalid URLs
thijskh Aug 17, 2022
3efa7ba
Slightly improve appearance of expired entity flagging
thijskh Aug 22, 2022
44b5cc3
Fix debug info text translation
thijskh Aug 22, 2022
ab79d1d
Reduce line length
thijskh Aug 22, 2022
b08104d
phpcs: fix multiline statements + indentation
tvdijen Aug 22, 2022
d3e728f
Mention new location of admin interface
thijskh Aug 22, 2022
a3b72c7
Add Slovak translation (#1688)
kikz0rsk Aug 28, 2022
5560a19
De-uglify login form when checkbox shown
thijskh Aug 30, 2022
3f1ea06
Fix output of phpinfo controller
thijskh Aug 30, 2022
1578470
Implement phpinfo controller as a StreamedResponse
thijskh Aug 30, 2022
6190858
Shorten StreamedResponse call
tvdijen Aug 31, 2022
9fa3d83
Add note on changing endpoints
tvdijen Aug 31, 2022
89f84a4
Retrieve relayState from the proper parameter bag
tvdijen Sep 4, 2022
4cb4319
Update security-checker
tvdijen Sep 4, 2022
da979d2
Bump dependencies
tvdijen Sep 7, 2022
7736071
Add ETag and check for modifiedness of metadata
thijskh Aug 24, 2022
2aee721
Need Request now to check last modified status
thijskh Aug 24, 2022
5343d05
Google Workspace signout page is not SAML SLO
thijskh Sep 5, 2022
6ae8174
Repair broken (but passing) tests and add more coverage
thijskh Aug 24, 2022
609db2c
Fix some bugs in serialize handler
thijskh Aug 24, 2022
f091b93
Add more coverage for MetadataStorageHandling.
thijskh Sep 5, 2022
8743bd4
Fix tests
tvdijen Sep 13, 2022
a3fd8ce
Bump dependencies
tvdijen Sep 13, 2022
7d89ba8
Fix incorrect method call
tvdijen Sep 13, 2022
cf41e2d
Keep the ACS url as it was in 1.19. (#1698)
thijskh Sep 14, 2022
7e82542
Bump dependencies
tvdijen Sep 14, 2022
6da74d0
Add support for Redis-Sentinel (#1699)
fengtan Sep 15, 2022
eecb1c1
Merge branch 'simplesamlphp-2.0'
tvdijen Sep 15, 2022
b823278
Fix
tvdijen Sep 15, 2022
b7e26e3
Fix build
tvdijen Sep 15, 2022
e1c32bd
make sure that same associationGroup is only used if both ADFS and SA…
m0ark Sep 15, 2022
80bb637
Fix typo
tvdijen Sep 16, 2022
5bc5382
Fix MetaDataStorageHandlerPdo.php
tvdijen Sep 20, 2022
3520363
Update browserslist during build
tvdijen Sep 21, 2022
a345bce
Bump dependencies
tvdijen Sep 21, 2022
5d16bc9
Mention lib/ > src/ migration in the update notes
tvdijen Sep 21, 2022
f7104c8
Throw an exception when configured theme controller is invalid
tvdijen Sep 21, 2022
12b0cf5
Bump assert-lib
tvdijen Sep 21, 2022
b321aef
Bump actions
tvdijen Sep 21, 2022
824fd08
Print sha hash as part of the build
tvdijen Sep 22, 2022
fea8e2f
Disable spellcheck on login form.
thijskh Sep 22, 2022
65a989a
Bump twig/twig from 3.4.2 to 3.4.3 (#1705)
dependabot[bot] Sep 30, 2022
77690d0
Use faster pcov instead of xdebug
tvdijen Oct 4, 2022
1631a50
Fix double quoted entityID
tvdijen Oct 18, 2022
e2836eb
Bump dependencies
tvdijen Oct 18, 2022
68d9f3b
Fix translation
tvdijen Oct 20, 2022
b8d4e42
Fix syntax errors in examples (#1707)
ghalse Oct 24, 2022
10aca38
Version string in 'master' is now called 'dev-master'
thijskh Oct 25, 2022
b403cbe
Fix alignment
tvdijen Oct 25, 2022
1df8a6b
All NameID authproc-filters use identifyingAttribute (#1709)
ghalse Oct 25, 2022
d8f1f5d
entityID change affects saml:SP too (#1710)
ghalse Oct 26, 2022
31d6d44
Remove storing entire original entityDescriptor in parsed metadata
thijskh Oct 25, 2022
f26739e
translateFromArray needs a FALLBACKLANGUAGE
ghalse Oct 26, 2022
4e40151
Support for authnContextClassRef in proxy mode
ghalse Oct 26, 2022
71e78bc
Remove stray translation tags
tvdijen Oct 29, 2022
721bbc8
Bump loader-utils from 2.0.2 to 2.0.3 (#1716)
dependabot[bot] Nov 9, 2022
68a6b3e
Improve pre-loading
tvdijen Nov 9, 2022
ecd5db1
Clean repo & release-script (#1717)
tvdijen Nov 15, 2022
02cd3f5
Remove unnecessary js variable; fixes linter error
tvdijen Nov 16, 2022
4a2b004
Merge duplicate selector
tvdijen Nov 16, 2022
0671f4d
Bump loader-utils from 2.0.3 to 2.0.4
dependabot[bot] Nov 18, 2022
75cf5a5
fix changelog dates
thijskh Nov 17, 2022
56e3367
Migrate two instance of old style Configuration usage (#1721)
pradtke Nov 21, 2022
32f9acc
Fix deprecated set-output
tvdijen Nov 23, 2022
892beb7
Fix links to saml extensions
thijskh Nov 28, 2022
6d8486e
Psalm seemed to thing of "set" as a type (#1722)
pradtke Dec 5, 2022
6fbfd69
Fix cron/bin/cron.php message that tells how to enable module
pradtke Dec 9, 2022
aadee41
Test on PHP 8.2
tvdijen Dec 12, 2022
7bdaca1
Fix deprecated style callable
tvdijen Dec 12, 2022
2011d70
Fix deprecated use of ${var}
tvdijen Dec 12, 2022
a2ddc83
Formatting improvement
thijskh Dec 13, 2022
9bb44f1
Only use @covers per class, not per method
thijskh Dec 16, 2022
ddd54a1
Remove base64attributes feature
thijskh Dec 15, 2022
c8cb0a8
document removed base64attributes
thijskh Dec 23, 2022
411455e
Adjusted module path from "lib" to "src"
ubiav Dec 21, 2022
22bf394
Update docs for changed name of template config files
thijskh Dec 29, 2022
9d8138a
Cron module should follow config file naming pattern
steinmb Dec 29, 2022
34438cd
getSessionHandler never returns null
pradtke Dec 21, 2022
3151b33
Micro optimisation and lower memory footprint
steinmb Dec 30, 2022
06e7a7b
Bump copyright year
thijskh Jan 1, 2023
abfa846
Avoid cascading calls in autoload wrapper
steinmb Jan 3, 2023
635366a
Reduce autoload wrapper complexity
steinmb Jan 3, 2023
253bd0d
Fix more concatenated calls to dirname
tvdijen Jan 3, 2023
ac4ae28
Add extra optional header template. This allows people to add extra h…
tvdijen Jan 4, 2023
3408cbc
Configureration logic (#1737)
steinmb Jan 4, 2023
20877ba
Use composer audit instead of third party security checker
tvdijen Jan 4, 2023
b0bf134
Bump json5 from 2.2.0 to 2.2.3 (#1738)
dependabot[bot] Jan 4, 2023
53eb47c
Another definition with same name exists in Session class (#1739)
steinmb Jan 4, 2023
2523634
Attempted fix for PHP 8.2 tests
tvdijen Jan 5, 2023
cb0e9ac
Handle null value the same as unset (#1740)
tvdijen Jan 5, 2023
19d1c81
Rationalize NameIDFormat config. (#1741)
thijskh Jan 6, 2023
287eabb
Remove notice about AuthMemcookie deprecated since 1.15.
thijskh Jan 6, 2023
4e6f849
Remove old portal-module from .gitignore
tvdijen Jan 12, 2023
70bf961
Suppress actions warning
tvdijen Jan 12, 2023
e2fbf1a
Clarify some frequently encountered issues in config.php.
thijskh Jan 19, 2023
30025f4
Reference the SP api also from the main menu
thijskh Jan 20, 2023
efb856c
Update authproc authsource docs
thijskh Jan 20, 2023
8a246c6
Update docs for changed filesystem paths
thijskh Jan 20, 2023
19ca82f
Rationalize commented config
tvdijen Jan 21, 2023
75c5893
Insert newline
tvdijen Jan 21, 2023
0454629
Fix docs file extension
tvdijen Jan 21, 2023
219a46f
Update code example
tvdijen Jan 21, 2023
f58de9a
Fix typo
tvdijen Jan 21, 2023
c3937e4
Fix build
tvdijen Jan 21, 2023
e885480
Error reporting: indicate the actual level instead of always 'Error' …
thijskh Jan 23, 2023
36ff0b1
Update ldap-authsource config examples
tvdijen Jan 23, 2023
4b959df
Language fix, no longer more than one file.
thijskh Jan 24, 2023
dc8f82c
Fix another place in the docs where NameIDPolicy is described
thijskh Jan 24, 2023
9b0fa14
Remove obsolete docblock that is no longer true.
thijskh Jan 24, 2023
7f29b6b
I don't think bare paths for file-based certs are really 'deprecated'
thijskh Jan 24, 2023
d35b08e
Remove legacy database.slaves option support
thijskh Jan 24, 2023
a3dd4af
Remove support for metadata.handler, deprecated in 1.5
thijskh Jan 24, 2023
7c830bb
Remove sources format for multiauth replaced in 1.9 (#1747)
thijskh Jan 24, 2023
3905b65
Fix and improve multiauth module
thijskh Jan 24, 2023
5209db3
Update upgrade notes
thijskh Jan 25, 2023
9c79567
Prevent JS error on pages / installs without languageBar
thijskh Jan 27, 2023
ad96417
Import assets from assets-module (#1750)
tvdijen Jan 27, 2023
23bdd57
RequestedAuthnContext source selector (#1749)
tvdijen Jan 28, 2023
a8d1b9e
Fix typo
tvdijen Jan 29, 2023
72c94de
Fix several issues reported by Psalm
tvdijen Jan 29, 2023
6f1e577
Raise coverage
tvdijen Jan 29, 2023
026ade0
Add 'bilateral attributes' feature to AttributeLimit authproc module
tvdijen Aug 17, 2021
eed4a43
Fix rebase mistake
tvdijen Sep 8, 2021
4100e56
Fix undefined var
tvdijen Nov 19, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/cache/.gitkeep export-ignore
/config/.gitkeep export-ignore
/metadata/.gitkeep export-ignore
/cert/.gitkeep export-ignore
/public/assets/.gitkeep export-ignore
/tests export-ignore
/tools export-ignore
codecov.yml export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ jobs:
files: .
ignore_path: .markdownlintignore

- name: Perform spell check
uses: codespell-project/actions-codespell@master
with:
path: '**/*.md'
check_filenames: true
ignore_words_list: tekst

build:
name: Build documentation
needs: quality
Expand Down
75 changes: 33 additions & 42 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
paths-ignore:
- '**.md'
pull_request:
branches: [ master, release-* ]
branches: [ master, simplesamlphp-* ]
paths-ignore:
- '**.md'

Expand All @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ubuntu-latest, windows-latest]
php-versions: ['7.4', '8.0', '8.1']
php-versions: ['8.0', '8.1', '8.2']

steps:
- name: Setup PHP, with composer and extensions
Expand All @@ -43,14 +43,18 @@ jobs:

- uses: actions/checkout@v3

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Get composer cache directory (linux)
if: ${{ matrix.operating-system == 'ubuntu-latest' }}
run: echo "COMPOSER_CACHE=$(composer config cache-files-dir)" >> $GITHUB_ENV

- name: Get composer cache directory (windows)
if: ${{ matrix.operating-system == 'windows-latest' }}
run: echo "COMPOSER_CACHE=$(composer config cache-files-dir)" >> $env:GITHUB_ENV

- name: Cache composer dependencies
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
path: $COMPOSER_CACHE
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

Expand All @@ -63,18 +67,16 @@ jobs:
- name: Syntax check PHP
run: bash vendor/bin/check-syntax-php.sh

- name: Decide whether to run code coverage or not
if: ${{ matrix.php-versions != '7.4' || matrix.operating-system != 'ubuntu-latest' }}
run: |
echo "NO_COVERAGE=--no-coverage" >> $GITHUB_ENV
- name: Run unit tests with coverage
if: ${{ matrix.php-versions == '8.1' && matrix.operating-system == 'ubuntu-latest' }}
run: ./vendor/bin/phpunit

- name: Run unit tests
run: |
echo $NO_COVERAGE
./vendor/bin/phpunit $NO_COVERAGE
- name: Run unit tests (no coverage)
if: ${{ matrix.php-versions != '8.1' || matrix.operating-system != 'ubuntu-latest' }}
run: ./vendor/bin/phpunit --no-coverage

- name: Save coverage data
if: ${{ matrix.php-versions == '7.4' && matrix.operating-system == 'ubuntu-latest' }}
if: ${{ matrix.php-versions == '8.1' && matrix.operating-system == 'ubuntu-latest' }}
uses: actions/upload-artifact@v3
with:
name: build-data
Expand All @@ -87,7 +89,7 @@ jobs:
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: '7.4'
php-version: '8.0'
extensions: mbstring, xml
tools: composer:v2
coverage: none
Expand All @@ -97,28 +99,24 @@ jobs:

- uses: actions/checkout@v3

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache composer dependencies
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
path: $COMPOSER_CACHE
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install Composer dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: Security check for locked dependencies
uses: symfonycorp/security-checker-action@v3
run: composer audit

- name: Update Composer dependencies
run: composer update --no-progress --prefer-dist --optimize-autoloader

- name: Security check for updated dependencies
uses: symfonycorp/security-checker-action@v3
run: composer audit

sanity-check:
name: Sanity checks
Expand All @@ -128,7 +126,7 @@ jobs:
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: '7.4'
php-version: '8.0'
extensions: mbstring, xml
tools: composer:v2
coverage: none
Expand All @@ -138,14 +136,10 @@ jobs:

- uses: actions/checkout@v3

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache composer dependencies
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
path: $COMPOSER_CACHE
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

Expand All @@ -165,9 +159,10 @@ jobs:

steps:
- name: Setup PHP, with composer and extensions
id: setup-php
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: '7.4'
php-version: '8.0'
tools: composer:v2
extensions: mbstring, xml

Expand All @@ -176,14 +171,10 @@ jobs:

- uses: actions/checkout@v3

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache composer dependencies
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
path: $COMPOSER_CACHE
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

Expand All @@ -196,16 +187,16 @@ jobs:
path: ${{ github.workspace }}/build

- name: Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3

- name: PHP Code Sniffer
continue-on-error: false
run: php vendor/bin/phpcs

- name: Psalm
continue-on-error: true
run: php vendor/bin/psalm --show-info=true --shepherd
run: php vendor/bin/psalm --show-info=true --shepherd --php-version=${{ steps.setup-php.outputs.php-version }}

- name: Psalter
continue-on-error: false
run: php vendor/bin/psalter --issues=UnnecessaryVarAnnotation --dry-run
run: php vendor/bin/psalter --issues=UnnecessaryVarAnnotation --dry-run --php-version=${{ steps.setup-php.outputs.php-version }}
30 changes: 8 additions & 22 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,27 +1,13 @@
/log/
/config/
/metadata/
/cert/
/www/assets/fonts/*
/www/assets/js/*.js
/www/assets/js/*.js.LICENSE.txt
!/www/assets/js/post.js
/www/assets/js/*.map
/www/assets/css/*.css
/www/assets/css/*.css.LICENSE.txt
!/www/assets/css/post.css
/www/assets/css/*.map
cert/*
config/*
metadata/*
!/cert/*.gitkeep
!/config/*.dist
!/metadata/*.dist
!/public/assets/.gitkeep
/public/assets/*
.phpunit.result.cache

!/config/.gitkeep
!/metadata/.gitkeep
!/cache/.gitkeep
!/locales/.gitkeep
!/www/assets/fonts/.gitkeep
!/www/assets/js/.gitkeep
!/www/assets/css/.gitkeep


# https://www.gitignore.io/api/osx,windows,linux,netbeans,sublimetext,composer,phpstorm,vagrant
# Created by https://www.gitignore.io

Expand Down
4 changes: 2 additions & 2 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

$finder = PhpCsFixer\Finder::create()
->exclude(__DIR__ . '/www/resources')
->exclude(__DIR__ . '/public/assets')
->in([
__DIR__ . '/modules',
__DIR__ . '/public',
__DIR__ . '/src',
__DIR__ . '/templates',
__DIR__ . '/tests',
__DIR__ . '/www',
])
;

Expand Down
2 changes: 1 addition & 1 deletion COPYING
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2007-2020 UNINETT AS, 2021-2022 SimpleSAMLphp
Copyright 2007-2020 UNINETT AS, 2021-2023 SimpleSAMLphp

SimpleSAMLphp is licensed under the CC-GNU LGPL version 2.1.
http://creativecommons.org/licenses/LGPL/2.1/
Expand Down
40 changes: 11 additions & 29 deletions bin/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ REPOPATH=$2
if ! shift; then
echo "$0: Missing required version parameter." >&2
exit 1
fi

if [ -z "$VERSION" ]; then
elif [ -z "$VERSION" ]; then
echo "$0: Empty version parameter." >&2
exit 1
fi
Expand All @@ -21,6 +19,7 @@ fi

TAG="v$VERSION"
TARGET="simplesamlphp-$VERSION"
COMPOSER="/tmp/composer.phar"

cd /tmp

Expand All @@ -31,41 +30,24 @@ fi

umask 0022

git clone $REPOPATH $TARGET
git clone --depth 1 --branch $TAG $REPOPATH $TARGET
cd $TARGET
git checkout $TAG
cd ..

if [ ! -x "$TARGET/composer.phar" ]; then
curl -sS https://getcomposer.org/installer | php -- --install-dir=$TARGET
if [ ! -x "$COMPOSER" ]; then
curl -sS https://getcomposer.org/installer | php -- --install-dir=/tmp
fi

# Set the version in composer.json
php "$TARGET/composer.phar" config version "v$VERSION" -d "$TARGET"
php "$COMPOSER" config version "v$VERSION"

# Install dependencies (without vcs history or dev tools)
php "$TARGET/composer.phar" install --no-dev --prefer-dist -o -d "$TARGET"
php "$COMPOSER" install --no-dev --prefer-dist -o

cd $TARGET
npm install
npm audit fix
npx browserslist@latest --update-db
npm run build
cd ..

mkdir -p "$TARGET/config" "$TARGET/metadata" "$TARGET/cert" "$TARGET/log" "$TARGET/data"
cp -rv "$TARGET/config-templates/"* "$TARGET/config/"
cp -rv "$TARGET/metadata-templates/"* "$TARGET/metadata/"
rm -rf "$TARGET/.git"
rm -rf "$TARGET/node_modules"
rm "$TARGET/www/assets/js/stylesheet.js"*
rm "$TARGET/.editorconfig"
rm "$TARGET/.gitattributes"
rm -r "$TARGET/.github"
rm "$TARGET"/phpunit.xml
rm "$TARGET"/{cache,config,metadata,locales}/.gitkeep
rm "$TARGET/composer.phar"
rm "$TARGET/bin/build-release.sh"
tar --owner 0 --group 0 -cvzf "$TARGET.tar.gz" "$TARGET"
rm -rf "$TARGET"

echo "Created: /tmp/$TARGET.tar.gz"
php "$COMPOSER" archive -f tar.gz --dir /tmp --file "$TARGET"
rm "$COMPOSER"
echo `shasum -a 256 /tmp/$TARGET.tar.gz`
2 changes: 1 addition & 1 deletion bin/get-translatable-strings
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use SimpleSAML\Utils;
use Symfony\Component\Filesystem\Filesystem;

// This is the base directory of the SimpleSAMLphp installation
$baseDir = dirname(dirname(__FILE__));
$baseDir = dirname(__FILE__, 2);

// Add library autoloader
require_once($baseDir . '/src/_autoload.php');
Expand Down
2 changes: 1 addition & 1 deletion bin/importPdoMetadata.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env php
<?php

$baseDir = dirname(dirname(__FILE__));
$baseDir = dirname(__FILE__, 2);

require_once $baseDir . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . '_autoload.php';
require_once \SimpleSAML\Utils\Config::getConfigDir() . DIRECTORY_SEPARATOR . 'config.php';
Expand Down
2 changes: 1 addition & 1 deletion bin/initMDSPdo.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php

// This is the base directory of the SimpleSAMLphp installation
$baseDir = dirname(dirname(__FILE__));
$baseDir = dirname(__FILE__, 2);

// Add library autoloader and configuration
require_once $baseDir . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . '_autoload.php';
Expand Down
2 changes: 1 addition & 1 deletion bin/memcacheSync.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}

// This is the base directory of the SimpleSAMLphp installation
$baseDir = dirname(dirname(__FILE__));
$baseDir = dirname(__FILE__, 2);

// Add library autoloader
require_once($baseDir . '/src/_autoload.php');
Expand Down
2 changes: 1 addition & 1 deletion bin/pwgen.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

// This is the base directory of the SimpleSAMLphp installation
$baseDir = dirname(dirname(__FILE__));
$baseDir = dirname(__FILE__, 2);

// Add library autoloader
require_once($baseDir . '/src/_autoload.php');
Expand Down
File renamed without changes.
Loading