#!/bin/bash
# 用于生成install文件的辅助脚本

PACKAGE=$1
VARIANT=$2
OUTPUT_FILE="debian/${PACKAGE}.install"

cat > "$OUTPUT_FILE" << EOL
common usr/share/bianbu-config/
hooks/${VARIANT}/basic/* etc/bianbu-config/hooks/basic/
target_overlay/${VARIANT}/* /
debian/bianbu-config-*.service lib/systemd/system/
EOL

echo "Generated $OUTPUT_FILE for $VARIANT"
