OPsi makefile issues
https://gitlab.irstea.fr/samuel.bastide/opsi-makefile/-/issues
2021-05-10T11:05:24+02:00
https://gitlab.irstea.fr/samuel.bastide/opsi-makefile/-/issues/1
error make
2021-05-10T11:05:24+02:00
Bastide Samuel
error make
opsi-package-manager: error: no such option: -3
touch ax-qgis-short_3.18.2 -3 .opsi.uploaded
touch: invalid option -- '3'
Try 'touch --help' for more information.
/home/oun/mkatest:22: recipe for target 'ax-qgis-short_3.18.2' failed
make...
opsi-package-manager: error: no such option: -3
touch ax-qgis-short_3.18.2 -3 .opsi.uploaded
touch: invalid option -- '3'
Try 'touch --help' for more information.
/home/oun/mkatest:22: recipe for target 'ax-qgis-short_3.18.2' failed
make: *** [ax-qgis-short_3.18.2] Error 1
Bastide Samuel
Bastide Samuel
https://gitlab.irstea.fr/samuel.bastide/opsi-makefile/-/issues/2
Make error 127
2021-05-10T11:05:23+02:00
Bastide Samuel
Make error 127
```
WGET_COMMON_OPTIONS = -q -N
PACKAGE_NAME = ax-qgis-short
VERSION = 3.18.2
OPSI_PACKAGE_VERSION = 3
DOWNLOAD_URLS = https://qgis.org/downloads/QGIS-OSGeo4W-3.18.2-1-Setup-x86_64.exe
TARGET ...
```
WGET_COMMON_OPTIONS = -q -N
PACKAGE_NAME = ax-qgis-short
VERSION = 3.18.2
OPSI_PACKAGE_VERSION = 3
DOWNLOAD_URLS = https://qgis.org/downloads/QGIS-OSGeo4W-3.18.2-1-Setup-x86_64.exe
TARGET = $(PACKAGE_NAME)_$(VERSION)-$(OPSI_PACKAGE_VERSION).opsi
all: download build install
download:
mkdir -p CLIENT_DATA/files
wget -q -P CLIENT_DATA/files/ $(DOWNLOAD_URLS)
$(TARGET):
opsi-makepackage
build: $(TARGET)
$(TARGET).uploaded:
opsi-package-manager -p ask -i $(TARGET)
touch $(TARGET).uploaded
install: $(TARGET).uploaded
clean:
rm -rf CLIENT_DATA/files
rm -f $(TARGET) $(TARGET).uploaded
```